Revision 24079,
633 bytes
checked in by broder, 15 years ago
(diff) |
Add convenience repo-management scripts dacopy and daremove, and
change damove to use those.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[23555] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[23837] | 3 | # Usage: damove NEW_SUFFIX OLD_SUFFIX SOURCE_PACKAGE |
---|
[23555] | 4 | |
---|
| 5 | # Move the source package from the old suffix to the new suffix, where |
---|
[23837] | 6 | # a suffix is probably one of "", "-proposed", or "-development" |
---|
[23555] | 7 | # |
---|
| 8 | # This moves any source or binary package built from the source |
---|
| 9 | # package PACKAGE |
---|
| 10 | |
---|
| 11 | : ${DEBATHENA_APT=/mit/debathena/apt} |
---|
| 12 | . $(dirname "$0")/debian-versions.sh |
---|
| 13 | |
---|
[23837] | 14 | if [ "$#" -ne 3 ]; then |
---|
| 15 | echo "Usage: damove NEW_SUFFIX OLD_SUFFIX SOURCE_PACKAGE" >&2 |
---|
[23555] | 16 | exit 1 |
---|
| 17 | fi |
---|
| 18 | |
---|
[24079] | 19 | new_suffix="$1"; shift |
---|
| 20 | old_suffix="$1"; shift |
---|
[23837] | 21 | |
---|
[24079] | 22 | dacopy "$new_suffix" "$old_suffix" "$@" |
---|
| 23 | if [ "$new_suffix" != "$old_suffix" ]; then |
---|
| 24 | daremove "$old_suffix" "$@" |
---|
| 25 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.