source: trunk/debathena/scripts/damove @ 23555

Revision 23555, 614 bytes checked in by broder, 15 years ago (diff)
First crack at a script for moving packages between production, proposed, and dev. The arguments are a little confusing, but I'm not sure how else to do it.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# Usage: damove NEW_SUFFIX OLD_SUFFIX 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 "-dev"
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 [ "$#" -lt 3 ]; then
15    echo "Usage: damove NEW_SUFFIX OLD_SUFFIX PACKAGE" >&2
16    exit 1
17fi
18
19for code in $DEBIAN_CODES; do
20    reprepro -Vb $DEBATHENA_APT copysrc "${code}${1}" "${code}${2}" "$3"
21    reprepro -Vb $DEBATHENA_APT removesrc "${code}${2}" "$3"
22done
Note: See TracBrowser for help on using the repository browser.