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)"
18 echo "to preserve your sanity."
22 # Work inside the build directory, so it doesn't show up in Packages pathnames
25 # Build Packages and Contents, for all distros, per arch
26 for arch
in i386 amd64
; do
27 for dir
in $
(find dists
-name "binary-$arch" -type d
-print) ; do
28 apt-ftparchive packages
$dir |
tee $dir/Packages |
gzip -9c > $dir/Packages.gz
29 apt-ftparchive contents
$dir |
gzip -9c > $dir/..
/..
/Contents-
$arch.gz
33 # Build signed Release files for all debian distros
34 # Make sure you have gpg-agent running, or this will be a pain...
37 if [ -f ..
/..
/apt
/$dir.conf
] ; then
38 (cd $dir && apt-ftparchive
-c ..
/..
/..
/apt
/$dir.conf release .
> Release
)
39 gpg
--use-agent --default-key B6C2250E
--armor \
40 --output $dir/Release.gpg \
41 --detach-sign $dir/Release
43 echo "WARNING: conf file for $dir not found under apt/"