#!/bin/sh # Archives with binary-all packages for archive in woody/math/binary-i386 woody/math/binary-alpha \ sarge/math/binary-i386 sarge/math/binary-alpha; do #if [ ! `find dists/$archive -newer dists/$archive/Packages.gz -printf ""` ]; then echo Generating $archive Packages file rm -f dists/$archive/Packages.gz apt-ftparchive packages dists/$archive > dists/$archive/Packages archive_all=`echo $archive | sed s/i386/all/ | sed s/alpha/all/` apt-ftparchive packages dists/$archive_all >> dists/$archive/Packages gzip dists/$archive/Packages #else #echo "$archive ok..." #fi done # Archives without binary-all packages for archive in woody/pilot/binary-i386 woody/pilot/binary-alpha \ woody/openafs/binary-i386 woody/openafs/binary-alpha \ woody/misc/binary-i386 woody/misc/binary-alpha \ woody/kernel/binary-i386 woody/kernel/binary-alpha \ sarge/openafs/binary-i386 sarge/openafs/binary-alpha \ etch/kernel/binary-i386; do #if [ ! `find dists/$archive -newer dists/$archive/Packages.gz -printf ""` ]; then echo Generating $archive Packages file rm -f dists/$archive/Packages.gz apt-ftparchive packages dists/$archive > dists/$archive/Packages gzip dists/$archive/Packages #else #echo "$archive ok..." #fi done # Source archives for archive in woody/math woody/pilot woody/misc sarge/math; do #if [ ! `find dists/$archive/source -newer dists/$archive/source/Sources.gz -printf ""` ]; then echo Generating $archive Sources file rm -f dists/$archive/source/Sources.gz apt-ftparchive sources dists/$archive/source | gzip -c > dists/$archive/source/Sources.gz #else #echo "$archive source ok..." #fi done