1999-11-11 16:10:37 -01:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
# Copyright 1999 Rapha<68>l Hertzog <hertzog@debian.org>
|
|
|
|
|
# See the README file for the license
|
|
|
|
|
|
|
|
|
|
# This script will create the Sources.gz files
|
|
|
|
|
# First arg = directory of the CD
|
|
|
|
|
|
2000-02-19 16:52:52 -01:00
|
|
|
|
set -e
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
|
|
PREFIX=$1
|
2000-06-06 17:19:27 +00:00
|
|
|
|
if [ -n "$NONFREE" -o -n "$EXTRANONFREE" ]; then
|
1999-11-11 16:10:37 -01:00
|
|
|
|
SECTIONS="main contrib non-free"
|
|
|
|
|
else
|
|
|
|
|
SECTIONS="main contrib"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cd $PREFIX
|
|
|
|
|
|
|
|
|
|
for SECT in $SECTIONS; do
|
|
|
|
|
|
|
|
|
|
dpkg-scansources dists/$CODENAME/$SECT/source \
|
|
|
|
|
| gzip --best > dists/$CODENAME/$SECT/source/Sources.gz
|
|
|
|
|
|
|
|
|
|
if [ -n "$NONUS" -a "$CODENAME" != "slink" ]; then
|
|
|
|
|
dpkg-scansources dists/$CODENAME/non-US/$SECT/source \
|
|
|
|
|
| gzip --best > dists/$CODENAME/non-US/$SECT/source/Sources.gz
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Slink special case
|
|
|
|
|
if [ -n "$NONUS" -a "$CODENAME" = "slink" ]; then
|
|
|
|
|
dpkg-scansources dists/$CODENAME/non-US/source \
|
|
|
|
|
| gzip --best > dists/$CODENAME/non-US/source/Sources.gz
|
|
|
|
|
fi
|
|
|
|
|
|
2000-03-07 17:59:31 -01:00
|
|
|
|
if [ -n "$LOCAL" ]; then
|
|
|
|
|
dpkg-scansources dists/$CODENAME/local/source \
|
|
|
|
|
| gzip --best > dists/$CODENAME/local/source/Sources.gz
|
|
|
|
|
fi
|
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
|
exit 0
|