Revision 24565,
603 bytes
checked in by broder, 15 years ago
(diff) |
Add a dareprepro script.
Since there are a handful of arguments that we *always* pass to
reprepro, add a wrapper for reprepro that passes them for us.
|
-
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 | |
---|
[24379] | 11 | set -e |
---|
| 12 | |
---|
[23555] | 13 | . $(dirname "$0")/debian-versions.sh |
---|
| 14 | |
---|
[23837] | 15 | if [ "$#" -ne 3 ]; then |
---|
| 16 | echo "Usage: damove NEW_SUFFIX OLD_SUFFIX SOURCE_PACKAGE" >&2 |
---|
[23555] | 17 | exit 1 |
---|
| 18 | fi |
---|
| 19 | |
---|
[24079] | 20 | new_suffix="$1"; shift |
---|
| 21 | old_suffix="$1"; shift |
---|
[23837] | 22 | |
---|
[24079] | 23 | dacopy "$new_suffix" "$old_suffix" "$@" |
---|
| 24 | if [ "$new_suffix" != "$old_suffix" ]; then |
---|
| 25 | daremove "$old_suffix" "$@" |
---|
| 26 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.