Updates for sarge r1

This commit is contained in:
Steve McIntyre 2005-12-19 19:05:23 +00:00
parent 773b972935
commit f8f6b90b2a
1 changed files with 23 additions and 17 deletions

View File

@ -14,37 +14,38 @@ set -e
# Configuration goes here. # Configuration goes here.
# Where is your mirror? # Where is your mirror?
MIRROR=${MIRROR:-/mirror/debian} MIRROR_NORM=/mirror/debian
MIRROR_AMD64=/mirror/debian-amd64
# If you have a non-US mirror, where is it? Leave blank if you don't have one. # If you have a non-US mirror, where is it? Leave blank if you don't have one.
NONUS=${NONUS:-/mirror/debian-non-US} # NONUS=${NONUS:-/mirror/debian-non-US}
# Do you want non-free? 1 for yes, 0 for no # Do you want non-free? 1 for yes, 0 for no
#NONFREE=1 NONFREE=1
# What release version is this? # What release version is this?
VER=3.0r3 VER=3.1r1
# Path to use with mkisofs/mkhybrid # Path to use with mkisofs/mkhybrid
MKISOFS=${MKISOFS:-"mkhybrid"} #MKISOFS=${MKISOFS:-"mkhybrid"}
MKISOFS=mkisofs-jte MKISOFS=mkisofs
# Use JTE extensions to mkisofs to make jigdo files? # Use JTE extensions to mkisofs to make jigdo files?
JTE=1 JTE=1
# The working directory to use. MUST be on the same partition as the mirror. # The working directory to use. MUST be on the same partition as the mirror.
TDIR=/mirror/debian-cd TDIR=/mirror/sarge-update
# Building woody cd set ... # Building woody cd set ...
CODENAME=woody CODENAME=sarge
# Path where the images will be written # Path where the images will be written
OUT=/mirror/woody-update/r3 OUT=/mirror/sarge-update/r1
# Location of the diff file to use to determine the changes. If you leave # Location of the diff file to use to determine the changes. If you leave
# this blank, we'll try to determine the changes from the ChangeLog files, # this blank, we'll try to determine the changes from the ChangeLog files,
# which is probably less accurate. # which is probably less accurate.
DIFF=/mirror/lists/$CODENAME/r0-r3.diff #~/r3.diff DIFF=/mirror/lists/$CODENAME/r0-r1.diff #~/r3.diff
CDSIZE=620 # megabytes, leaving space for metadata CDSIZE=620 # megabytes, leaving space for metadata
REL=Debian"$VER" REL=Debian"$VER"
@ -58,7 +59,7 @@ VERBOSE=2
GRAB_MD5=$BASEDIR/tools/grab_md5 GRAB_MD5=$BASEDIR/tools/grab_md5
export VERBOSE BASEDIR SECTS export VERBOSE BASEDIR SECTS
ARCHLIST="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc src" # all dealt with specially ARCHLIST="alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc source" # amd64 # all dealt with specially
export TDIR NONFREE NONUS VER MIRROR CODENAME OUT BASEDIR export TDIR NONFREE NONUS VER MIRROR CODENAME OUT BASEDIR
@ -77,8 +78,8 @@ create_control_files () {
for ARCH in $ARCHES for ARCH in $ARCHES
do do
case "$ARCH" in case "$ARCH" in
src) source)
echo " src" echo " source"
for SECT in $SECTS for SECT in $SECTS
do do
mkdir -p $CDDIR/dists/$CODENAME/$SECT/source mkdir -p $CDDIR/dists/$CODENAME/$SECT/source
@ -161,10 +162,9 @@ make_cd () {
echo Cleaning up echo Cleaning up
rm -rf $UPD rm -rf $UPD
mkdir $UPD mkdir -p $UPD
CDNUM=1 CDNUM=1
cd $MIRROR
echo Creating file list echo Creating file list
if [ ! -e $DIFF ] ; then if [ ! -e $DIFF ] ; then
@ -188,6 +188,12 @@ for THISARCH in $ARCHLIST
do do
THISNUM=0 THISNUM=0
if [ $THISARCH = amd64 ] ; then
MIRROR=$MIRROR_AMD64
else
MIRROR=$MIRROR_NORM
fi
rm -f $UPD/md5-check rm -f $UPD/md5-check
$GRAB_MD5 $MIRROR $THISARCH $CODENAME $UPD/md5-check $GRAB_MD5 $MIRROR $THISARCH $CODENAME $UPD/md5-check
if [ "$NONUS"x != ""x ] ; then if [ "$NONUS"x != ""x ] ; then
@ -200,7 +206,7 @@ do
echo echo
cd $MIRROR cd $MIRROR
THISNUM=$((THISNUM + 1)) THISNUM=$((THISNUM + 1))
if [ $THISARCH = "src" ] ; then if [ $THISARCH = "source" ] ; then
echo "Creating CD$CDNUM for source (part $THISNUM)" echo "Creating CD$CDNUM for source (part $THISNUM)"
else else
echo "Creating CD$CDNUM for binary-$THISARCH (part $THISNUM)" echo "Creating CD$CDNUM for binary-$THISARCH (part $THISNUM)"
@ -223,7 +229,7 @@ do
fi fi
case "$THISARCH" in case "$THISARCH" in
src) source)
case "$file" in case "$file" in
*.gz|*.dsc) *.gz|*.dsc)
copy_file $UPD/CD$CDNUM $file copy_file $UPD/CD$CDNUM $file