Revision 25747,
816 bytes
checked in by jdreed, 12 years ago
(diff) |
Get rid of "dirname $0" and replace with DA_SCRIPTS_DIR, which
allows overriding at run time. (Trac: #1191)
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # Usage: daupload-equivs CHANGESFILE |
---|
4 | # Usage: daupload-equivs-proposed CHANGESFILE |
---|
5 | # Usage: daupload-equivs-dev CHANGESFILE |
---|
6 | |
---|
7 | # Adds an equivs-generated package to all dists. Since equivs-built |
---|
8 | # packages are very simple, there is no need to build them separately |
---|
9 | # for each dist. |
---|
10 | |
---|
11 | : ${DA_SCRIPTS_DIR="$(dirname "$0")"} |
---|
12 | . "$DA_SCRIPTS_DIR"/debian-versions.sh |
---|
13 | |
---|
14 | case "$(basename "$0")" in |
---|
15 | daupload-equivs) |
---|
16 | release="" |
---|
17 | ;; |
---|
18 | daupload-equivs-proposed) |
---|
19 | release="-proposed" |
---|
20 | ;; |
---|
21 | daupload-equivs-dev) |
---|
22 | release="-development" |
---|
23 | ;; |
---|
24 | *) |
---|
25 | echo "Unknown release." >&2 |
---|
26 | exit 1 |
---|
27 | ;; |
---|
28 | esac |
---|
29 | |
---|
30 | if [ -z "$1" ]; then |
---|
31 | echo "Usage: $0 CHANGESFILE" >&2 |
---|
32 | exit 1 |
---|
33 | fi |
---|
34 | |
---|
35 | for code in $DEBIAN_CODES; do |
---|
36 | dareprepro include "${code}${release}" "$1" |
---|
37 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.