# and
# http://blogs.cae.tntech.edu/mwr/2007/05/28/my-own-private-debian-repository/
-DISTS=public/dists/stderr
-SECTIONS=main
-ARCHS=i386 all
-CACHE=cache
+DISTS="public/dists/stderr"
+SECTIONS="main"
+ARCHS="i386 all"
+CACHE="cache"
# This dir should contain a private keyring with an appropriate key
-GPG_HOME=gnupg
+GPG_HOME="gnupg"
# Create cache directory
mkdir -p $CACHE
# Create target directories
-for $DIST in $DISTS; do
- for $SECTION in $SECTIONS; do
- for $ARCH in $ARCHS; do
- mkdir -p $DIST/$SECTION/$ARCH
+for DIST in $DISTS; do
+ for SECTION in $SECTIONS; do
+ for ARCH in $ARCHS; do
+ mkdir -p $DIST/$SECTION/binary-$ARCH
done
+ mkdir -p $DIST/$SECTION/source
done
done
apt-ftparchive generate ftparchive.conf
# Create Release files
-for $DIST in $DISTS; do
+for DIST in $DISTS; do
apt-ftparchive -c ftparchive.conf release $DIST > $DIST/Release
rm $DIST/Release.gpg
gpg --homedir $GPG_HOME --sign --detach-sign --armor -o $DIST/Release.gpg $DIST/Release