source: trunk/debathena/scripts/daremove @ 25747

Revision 25747, 510 bytes checked in by jdreed, 12 years ago (diff)
Get rid of "dirname $0" and replace with DA_SCRIPTS_DIR, which allows overriding at run time. (Trac: #1191)
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# Usage: daremove SUFFIX SOURCE_PACKAGE
4
5# Remove the source package from the given suffix, where a suffix is
6# probably one of "", "-proposed", or "-development"
7#
8# This removes any source or binary package built from the source
9# package PACKAGE
10
11: ${DA_SCRIPTS_DIR="$(dirname "$0")"}
12. "$DA_SCRIPTS_DIR"/debian-versions.sh
13
14if [ "$#" -ne 2 ]; then
15    echo "Usage: daremove SUFFIX SOURCE_PACKAGE" >&2
16    exit 1
17fi
18
19for code in $DEBIAN_CODES; do
20    dareprepro removesrc "${code}${1}" "$2"
21done
Note: See TracBrowser for help on using the repository browser.