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

Revision 22703, 1.4 KB checked in by ghudson, 17 years ago (diff)
Snapshot the source materials for the manual-config packages, from /mit/debathena/packages/manual-config.
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: Debian-Athena Project <debathena\@mit.edu>\nStandards-Version: 3.6.2\nCopyright: ..\/common\/copyright\nReadme: ..\/common\/README-manual-config.in\nDescription: Debian-Athena manual configuration for $package\n This is a Debian-Athena 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.