Browse Source

added a -source options to embed the ROCK Linux source as well as all known

download files onto the ISO (as we had before the 1.7 rewrite - and requested
by many people, especially on CeBIT)


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2592 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
3d5c5df885
2 changed files with 30 additions and 6 deletions
  1. +29
    -5
      scripts/Create-ISO
  2. +1
    -1
      scripts/Download

+ 29
- 5
scripts/Create-ISO

@ -15,14 +15,15 @@
#
# SCRIPT script-name args Run given script for each image
#
# Intended for image post-processing - like needed for IBM RS/6k boot
# blessing. The first attached argument is the CD number and the second
# the image file.
# Intended for image post-processing. The first attached argument is the CD
# number and the second the image file.
#
eval `grep rockver scripts/parse-config`
if [ $# -eq 0 ] ; then
echo
echo "Usage: $0 [ -size MB ] [ -mkdebug] ISO-Prefix \\"
echo "Usage: $0 [ -size MB ] [ -source ] [ -mkdebug ] ISO-Prefix \\"
echo " ${0//?/ } Config [ Config [ .. ] ]"
echo
echo "E.g.: $0 mycdset install generic"
@ -32,12 +33,15 @@ fi
# default disk-size is 600 MB
dsize=$(( 600 * 1024 ))
src=0
mkdebug=0
while true ; do
case "$1" in
-size)
dsize=$(( $2 * 1024 )) ; shift ; shift ;;
-source)
src=1 ; shift ;;
-mkdebug)
mkdebug=1 ; shift ;;
-* | '')
@ -166,12 +170,32 @@ while read type from to ; do
fi
done < $dat
if [ $src = 1 ] ; then
echo "$spacer embedding source."
./scripts/Create-SrcTar
for x in Documentation/* rock-src-$rockver.tar.bz2 ; do
[ ! -d $x ] && add $x ${x/Documentation\/}
done
while read from ; do
# adaptions of the sed exp need to propagated into Download, too
from="`echo $from | sed 's,\.\(t\?\)\(gz\|Z\)$,.\1bz2,'`"
if [ -e $from ] ; then
add $from $from
else
echo "WARNING: File $from is missing!"
fi
done < <( ./scripts/Download -list )
fi
echo -n > $index
for x in 0 $disks ; do
dd=disk_${x}_data
for y in ${!dd} `cat ${pathspec}_${x} 2> /dev/null` ; do
to=${y%=*} ; from=${y#*=}
if [ -d $from ] ; then
if [ -e $from ] ; then
find $from -printf "disk$x $to%P\\n" >> $index
else
echo "disk$x $to" >> $index

+ 1
- 1
scripts/Download

@ -270,7 +270,7 @@ download_file() {
gzfile="$1" ; location="$2" ; cksum="$3"
# Make src directory for creating tar balls
mkdir -p src/
# Tar ball file name:
# Tarball file name: (if you change this one - also adapt Create-ISO)
bzfile="`echo "$gzfile" | sed 's,\.\(t\?\)\(gz\|Z\)$,.\1bz2,'`"
# Lock file name:
lkfile="src/down.lockfile.`echo $bzfile | tr / -`"

Loading…
Cancel
Save