source: trunk/debathena/manual-config/make-manual-config.sh @ 23374

Revision 23374, 1.3 KB checked in by tabbott, 13 years ago (diff)
* manual-config: "Debian-Athena" to "Debathena". * manual_config: Clarify the common debian/copyright files.
Line 
1#!/bin/bash
2
3package() {
4    perl -0ne 's/^Section: debathena-config/Section: debathena-manual-config/m;
5         s/^Package: debathena-(.*)-config$/Package: debathena-manual-$1-config/m;
6         $package=$1;
7         s/^Version: (.*)~.*$/Version: \1/m;
8         $version=$1;
9         s/$/\nConflicts: debathena-$package-config\nProvides: debathena-$package-config\nMaintainer: Debathena Project <debathena\@mit.edu>\nStandards-Version: 3.6.2\nCopyright: ..\/common\/copyright\nReadme: ..\/common\/README-manual-config.in\nDescription: Debathena manual configuration for $package\n This is a Debathena manual configuration package.  It provides an\n alternate way to satisfy any dependencies on debathena-$package-config,\n for those who prefer to do this configuration manually.\n .\n If you want $package to be configured automatically, make sure you have\n enabled the debathena-config component of the repository, and install\n the debathena-$package-config package instead.\n/;
10         print "manual-$package-config debathena-manual-$package-config_$version.equivs\n$_";' | \
11#    cat; cat /dev/null | \
12    (
13        read -r dir file && mkdir -p "$dir" && chmod 777 "$dir" && cd "$dir" && \
14            if ! [ -e "$file" ]; then
15                cat > "$file"
16                equivs-build --full "$file"
17                echo "$dir/$file" | sed 's/\.equivs$/_amd64.changes/' >> ../upload-queue
18            fi
19    )
20}
Note: See TracBrowser for help on using the repository browser.