source: trunk/debathena/scripts/daupload-equivs-proposed @ 24565

Revision 24565, 776 bytes checked in by broder, 12 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 *
Line 
1#!/bin/sh
2
3# Usage: daupload-equivs CHANGESFILE
4# Usage: daupload-equivs-proposed CHANGESFILE
5# Usage: daupload-equivs-dev CHANGESFILE
6
7# Adds an equivs-generated package to all dists.  Since equivs-built
8# packages are very simple, there is no need to build them separately
9# for each dist.
10
11. $(dirname "$0")/debian-versions.sh
12
13case "$(basename "$0")" in
14    daupload-equivs)
15        release=""
16        ;;
17    daupload-equivs-proposed)
18        release="-proposed"
19        ;;
20    daupload-equivs-dev)
21        release="-development"
22        ;;
23    *)
24        echo "Unknown release." >&2
25        exit 1
26        ;;
27esac
28
29if [ -z "$1" ]; then
30    echo "Usage: $0 CHANGESFILE" >&2
31    exit 1
32fi
33
34for code in $DEBIAN_CODES; do
35    dareprepro include "${code}${release}" "$1"
36done
Note: See TracBrowser for help on using the repository browser.