1999-11-11 16:10:37 -01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Create the needed directories before putting packages into them
|
|
|
|
|
|
|
|
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
|
2002-10-10 12:56:48 +00:00
|
|
|
NONFREE=1
|
2000-06-06 17:19:27 +00:00
|
|
|
fi
|
|
|
|
|
1999-11-11 16:10:37 -01:00
|
|
|
cd $1
|
|
|
|
|
2000-12-05 19:53:24 -01:00
|
|
|
if [ ! -e debian ] ; then
|
2002-10-10 12:56:48 +00:00
|
|
|
ln -sf . debian
|
2000-12-05 19:53:24 -01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d dists/$CODENAME ] ; then
|
2002-10-10 12:56:48 +00:00
|
|
|
mkdir -p dists/$CODENAME
|
|
|
|
for name in stable unstable frozen testing; do
|
|
|
|
ln -sf $CODENAME dists/$name
|
|
|
|
done
|
2000-12-05 19:53:24 -01:00
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
|
2002-10-10 12:56:48 +00:00
|
|
|
# Commodity 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
|
2002-10-10 12:56:48 +00:00
|
|
|
mkdir .disk
|
2002-03-21 17:30:24 -01:00
|
|
|
fi
|
|
|
|
|
2002-10-10 12:56:48 +00:00
|
|
|
mkdir -p dists/$CODENAME/main/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/main/source
|
2002-12-07 09:33:52 -01:00
|
|
|
if [ "${CONTRIB:-0}" != 0 ]; then
|
|
|
|
mkdir -p dists/$CODENAME/contrib/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/contrib/source
|
|
|
|
fi
|
2002-10-10 12:56:48 +00:00
|
|
|
if [ "${NONFREE:-0}" != "0" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/non-free/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/non-free/source
|
|
|
|
fi
|
2005-01-12 15:11:51 -01:00
|
|
|
|
|
|
|
if [ -n "$LOCAL" -a -e "${LOCALDEBS:-$MIRROR}/dists/$DI_CODENAME/local/debian-installer" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/local/debian-installer/binary-$ARCH
|
|
|
|
fi
|
2004-03-08 12:43:40 -01:00
|
|
|
if [ -e "$MIRROR/dists/$DI_CODENAME/main/debian-installer" ]; then
|
2002-10-10 12:56:48 +00:00
|
|
|
mkdir -p dists/$CODENAME/main/debian-installer/binary-$ARCH
|
|
|
|
fi
|
|
|
|
|
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/source
|
2002-12-07 09:33:52 -01:00
|
|
|
if [ "${CONTRIB:-0}" != "0" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/updates/contrib/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/updates/contrib/source
|
|
|
|
fi
|
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/source
|
|
|
|
fi
|
1999-11-11 16:10:37 -01:00
|
|
|
fi
|
|
|
|
|
2002-03-21 17:30:24 -01:00
|
|
|
if [ -n "$NONUS" ]; then
|
2002-10-10 12:56:48 +00:00
|
|
|
mkdir -p dists/$CODENAME/non-US/main/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/non-US/main/source
|
2002-12-07 09:33:52 -01:00
|
|
|
if [ "${CONTRIB:-0}" != "0" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/non-US/contrib/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/non-US/contrib/source
|
|
|
|
fi
|
2002-10-10 12:56:48 +00:00
|
|
|
if [ "${NONFREE:-0}" != "0" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/non-US/non-free/binary-$ARCH
|
|
|
|
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
|
|
|
|
2005-01-12 15:11:51 -01:00
|
|
|
if [ -n "$LOCAL" ]; then
|
|
|
|
mkdir -p dists/$CODENAME/local/binary-$ARCH
|
|
|
|
mkdir -p dists/$CODENAME/local/source
|
|
|
|
fi
|