Revision 25747,
510 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
*
|
Rev | Line | |
---|
[24079] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | # Usage: daremove SUFFIX SOURCE_PACKAGE |
---|
| 4 | |
---|
| 5 | # Remove the source package from the given suffix, where a suffix is |
---|
| 6 | # probably one of "", "-proposed", or "-development" |
---|
| 7 | # |
---|
| 8 | # This removes any source or binary package built from the source |
---|
| 9 | # package PACKAGE |
---|
| 10 | |
---|
[25747] | 11 | : ${DA_SCRIPTS_DIR="$(dirname "$0")"} |
---|
| 12 | . "$DA_SCRIPTS_DIR"/debian-versions.sh |
---|
[24079] | 13 | |
---|
| 14 | if [ "$#" -ne 2 ]; then |
---|
| 15 | echo "Usage: daremove SUFFIX SOURCE_PACKAGE" >&2 |
---|
| 16 | exit 1 |
---|
| 17 | fi |
---|
| 18 | |
---|
| 19 | for code in $DEBIAN_CODES; do |
---|
[24565] | 20 | dareprepro removesrc "${code}${1}" "$2" |
---|
[24079] | 21 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.