chiark / gitweb /
svn-takeover: Cope with .svn directories already being present.
[bin.git] / dpkg-myscan
1 #! /bin/sh
2
3 if [ "$1" = packages -o -z "$1" ]; then
4         type=packages
5         topdir=binary-i386
6         outfile=Packages
7 elif [ "$1" = sources ]; then
8         type=sources
9         topdir=source
10         outfile=Sources
11 else
12         echo "Usage: $0 packages|sources" >&2
13         exit 1
14 fi
15
16 echo Searching for $type ...
17
18 for x in main non-US/main non-free; do
19         echo Scanning $x ...
20         dir=dists/unstable/$x/$topdir
21         if [ -e $dir ]; then
22                 dpkg-scan$type $dir /dev/null > $dir/$outfile
23                 gzip -c $dir/$outfile > $dir/$outfile.gz
24         else
25                 echo $x not found.
26         fi
27 done