source: trunk/debathena/scripts/daupload-equivs @ 25951

Revision 25951, 816 bytes checked in by jdreed, 9 years ago (diff)
* Rename daupload-proposed to daupload, and repoint all symlinks * Rename daupload-equivs-proposed to daupload-equivs and repoint all symlinks * Create daupload-release symlink which was in locker but not svn
  • 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: ${DA_SCRIPTS_DIR="$(dirname "$0")"}
12. "$DA_SCRIPTS_DIR"/debian-versions.sh
13
14case "$(basename "$0")" in
15    daupload-equivs)
16        release=""
17        ;;
18    daupload-equivs-proposed)
19        release="-proposed"
20        ;;
21    daupload-equivs-dev)
22        release="-development"
23        ;;
24    *)
25        echo "Unknown release." >&2
26        exit 1
27        ;;
28esac
29
30if [ -z "$1" ]; then
31    echo "Usage: $0 CHANGESFILE" >&2
32    exit 1
33fi
34
35for code in $DEBIAN_CODES; do
36    dareprepro include "${code}${release}" "$1"
37done
Note: See TracBrowser for help on using the repository browser.