1999-11-11 16:10:37 -01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Create the needed directories before putting packages into them
|
|
|
|
|
|
|
|
SECTIONS="admin base comm devel doc editors electronics games graphics \
|
|
|
|
hamradio interpreters libs mail math misc net news oldlibs \
|
2000-03-07 17:59:31 -01:00
|
|
|
otherosfs science shells sound tex text utils web x11"
|
1999-11-11 16:10:37 -01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2000-06-06 17:19:27 +00:00
|
|
|
# There's no difference between NONFREE and EXTRANONFREE for this script
|
2002-04-13 12:17:57 +00:00
|
|
|
if [ "${EXTRANONFREE:-0}" != "0" ]
|
2000-06-06 17:19:27 +00:00
|
|
|
then
|
|
|
|
NONFREE=1
|
|
|
|
fi
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
cd $1
|
|
|
|
|
2000-12-05 19:53:24 -01:00
|
|
|
if [ ! -e debian ] ; then
|
|
|
|
ln -sf . debian
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d dists/$CODENAME ] ; then
|
|
|
|
mkdir -p dists/$CODENAME
|
|
|
|
ln -sf $CODENAME dists/stable
|
|
|
|
ln -sf $CODENAME dists/unstable
|
|
|
|
ln -sf $CODENAME dists/frozen
|
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2000-11-12 21:41:45 -01:00
|
|
|
# Commidity link for tools which want local in dists/local/local ...
|
2000-11-13 05:23:52 -01:00
|
|
|
if [ -n "$LOCAL" ]
|
2000-11-12 21:41:45 -01:00
|
|
|
then
|
|
|
|
ln -sf $CODENAME dists/local
|
|
|
|
fi
|
|
|
|
|
2002-03-21 17:30:24 -01:00
|
|
|
|
|
|
|
if [ ! -d .disk ] ; then
|
|
|
|
mkdir .disk
|
|
|
|
fi
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
for i in $SECTIONS
|
|
|
|
do
|
2002-03-21 17:30:24 -01:00
|
|
|
mkdir -p dists/$CODENAME/main/binary-$ARCH/$i
|
|
|
|
mkdir -p dists/$CODENAME/main/binary-all/$i
|
|
|
|
mkdir -p dists/$CODENAME/main/source/$i
|
|
|
|
mkdir -p dists/$CODENAME/contrib/binary-$ARCH/$i
|
|
|
|
mkdir -p dists/$CODENAME/contrib/binary-all/$i
|
|
|
|
mkdir -p dists/$CODENAME/contrib/source/$i
|
2002-04-13 12:17:57 +00:00
|
|
|
if [ "${NONFREE:-0}" != "0" ]; then
|
2002-03-21 17:30:24 -01:00
|
|
|
mkdir -p dists/$CODENAME/non-free/binary-$ARCH/$i
|
|
|
|
mkdir -p dists/$CODENAME/non-free/binary-all/$i
|
|
|
|
mkdir -p dists/$CODENAME/non-free/source/$i
|
|
|
|
fi
|
|
|
|
if [ -n "$LOCAL" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/local/binary-$ARCH/$i
|
|
|
|
mkdir -p dists/$CODENAME/local/binary-all/$i
|
|
|
|
mkdir -p dists/$CODENAME/local/source/$i
|
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
done
|
|
|
|
|
2002-03-21 17:30:24 -01:00
|
|
|
if [ -n "$SECURITY" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/updates/main/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/updates/main/binary-all
|
|
|
|
mkdir -p dists/$CODENAME/updates/main/source
|
|
|
|
mkdir -p dists/$CODENAME/updates/contrib/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/updates/contrib/binary-all
|
|
|
|
mkdir -p dists/$CODENAME/updates/contrib/source
|
2002-04-13 12:17:57 +00:00
|
|
|
if [ "${NONFREE:-0}" != "0" ]; then
|
2002-03-21 17:30:24 -01:00
|
|
|
mkdir -p dists/$CODENAME/updates/non-free/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/updates/non-free/binary-all
|
|
|
|
mkdir -p dists/$CODENAME/updates/non-free/source
|
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
fi
|
|
|
|
|
2002-03-21 17:30:24 -01:00
|
|
|
if [ -n "$NONUS" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/non-US/main/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/non-US/main/binary-all
|
|
|
|
mkdir -p dists/$CODENAME/non-US/main/source
|
|
|
|
mkdir -p dists/$CODENAME/non-US/contrib/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/non-US/contrib/binary-all
|
|
|
|
mkdir -p dists/$CODENAME/non-US/contrib/source
|
2002-04-13 12:17:57 +00:00
|
|
|
if [ "${NONFREE:-0}" != "0" ]; then
|
2002-03-21 17:30:24 -01:00
|
|
|
mkdir -p dists/$CODENAME/non-US/non-free/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/non-US/non-free/binary-all
|
|
|
|
mkdir -p dists/$CODENAME/non-US/non-free/source
|
|
|
|
fi
|
2000-12-05 19:53:24 -01:00
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
|