debian-cd-clone/tools/scansources

39 lines
851 B
Plaintext
Raw Normal View History

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
set -e
1999-11-11 16:10:37 -01:00
PREFIX=$1
if [ -n "$NONFREE" ]; then
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
exit 0