source: trunk/debathena/scripts/damove @ 24079

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 *
RevLine 
[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]14if [ "$#" -ne 3 ]; then
15    echo "Usage: damove NEW_SUFFIX OLD_SUFFIX SOURCE_PACKAGE" >&2
[23555]16    exit 1
17fi
18
[24079]19new_suffix="$1"; shift
20old_suffix="$1"; shift
[23837]21
[24079]22dacopy "$new_suffix" "$old_suffix" "$@"
23if [ "$new_suffix" != "$old_suffix" ]; then
24    daremove "$old_suffix" "$@"
25fi
Note: See TracBrowser for help on using the repository browser.