6 echo "Usage: make-apt.sh builddir"
12 if [ -z "$GPG_AGENT_INFO" ] ; then
13 echo "Press enter to continue if gpg-agent is running,"
14 echo "Otherwise, run:"
16 echo " eval \$(gpg-agent --daemon --default-cache-ttl n)"
18 echo "to preserve your sanity. n is in seconds, and default"
19 echo "from gpg-agent is 600 seconds."
23 # Work inside the build directory, so it doesn't show up in Packages pathnames
26 # Build Packages and Contents, for all distros, per arch
27 for arch
in i386 amd64
; do
28 for dir
in $
(find dists
-name "binary-$arch" -type d
-print) ; do
29 apt-ftparchive packages
$dir |
tee $dir/Packages |
gzip -9c > $dir/Packages.gz
30 apt-ftparchive contents
$dir |
gzip -9c > $dir/..
/..
/Contents-
$arch.gz
34 # Build signed Release files for all debian distros
35 # Make sure you have gpg-agent running, or this will be a pain...
38 if [ -f ..
/..
/apt
/$dir.conf
] ; then
39 (cd $dir && apt-ftparchive
-c ..
/..
/..
/apt
/$dir.conf release .
> Release
)
40 gpg
--use-agent --default-key B6C2250E
--armor \
41 --output $dir/Release.gpg \
42 --detach-sign $dir/Release
44 echo "WARNING: conf file for $dir not found under apt/"