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 *
Line 
1#!/bin/sh
2
3# Usage: damove NEW_SUFFIX OLD_SUFFIX SOURCE_PACKAGE
4
5# Move the source package from the old suffix to the new suffix, where
6# a suffix is probably one of "", "-proposed", or "-development"
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
14if [ "$#" -ne 3 ]; then
15    echo "Usage: damove NEW_SUFFIX OLD_SUFFIX SOURCE_PACKAGE" >&2
16    exit 1
17fi
18
19new_suffix="$1"; shift
20old_suffix="$1"; shift
21
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.