Subversion Repositories SvarDOS

Rev

Rev 168 | Rev 180 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 168 Rev 171
Line 20... Line 20...
20
CDROOT=`realpath ./cdroot`
20
CDROOT=`realpath ./cdroot`
21
CDROOTNOSRC=`realpath ./cdrootnosrc`
21
CDROOTNOSRC=`realpath ./cdrootnosrc`
22
CDROOTMICRO=`realpath ./cdrootmicro`
22
CDROOTMICRO=`realpath ./cdrootmicro`
23
CUSTFILES=`realpath ./files`
23
CUSTFILES=`realpath ./files`
24
 
24
 
-
 
25
GENISOIMAGE=''    # can be mkisofs, genisoimage or empty for autodetection
-
 
26
 
25
### parameters block ends here ##############################################
27
### parameters block ends here ##############################################
26
 
28
 
-
 
29
 
-
 
30
# auto-detect whether to use mkisofs or genisoimage
-
 
31
 
-
 
32
if [ "x$GENISOIMAGE" == "x" ] ; then
-
 
33
mkisofs --help > /dev/null
-
 
34
if [ $? -eq 0 ] ; then
-
 
35
  GENISOIMAGE='mkisofs'
-
 
36
fi
-
 
37
fi
-
 
38
 
-
 
39
if [ "x$GENISOIMAGE" == "x" ] ; then
-
 
40
genisoimage --help > /dev/null
-
 
41
if [ $? -eq 0 ] ; then
-
 
42
  GENISOIMAGE='genisoimage'
-
 
43
fi
-
 
44
fi
-
 
45
 
-
 
46
if [ "x$GENISOIMAGE" == "x" ] ; then
-
 
47
  echo "ERROR: neither genisoimage nor mkisofs was found on this system"
-
 
48
  exit 1
-
 
49
fi
-
 
50
 
-
 
51
 
27
# function to be called with the repository (short) name as argument
52
# function to be called with the repository (short) name as argument
28
function dorepo {
53
function dorepo {
29
  repodir="$1"
54
  repodir="$1"
30
  # switch to repo's dir
55
  # switch to repo's dir
31
  cd $REPOROOT/$repodir
56
  cd $REPOROOT/$repodir
Line 120... Line 145...
120
mkdir -p "$CDISODIR/$YEAR"
145
mkdir -p "$CDISODIR/$YEAR"
121
 
146
 
122
CDISO="$CDISODIR/$YEAR/svarog386-$DATESTAMP-full.iso"
147
CDISO="$CDISODIR/$YEAR/svarog386-$DATESTAMP-full.iso"
123
CDISONOSRC="$CDISODIR/$YEAR/svarog386-$DATESTAMP-nosrc.iso"
148
CDISONOSRC="$CDISODIR/$YEAR/svarog386-$DATESTAMP-nosrc.iso"
124
CDISOMICRO="$CDISODIR/$YEAR/svarog386-$DATESTAMP-micro.iso"
149
CDISOMICRO="$CDISODIR/$YEAR/svarog386-$DATESTAMP-micro.iso"
125
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISO" "$CDROOT"
150
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISO" "$CDROOT"
126
if [ $? -ne 0 ] ; then exit 1 ; fi
151
if [ $? -ne 0 ] ; then exit 1 ; fi
127
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISONOSRC" "$CDROOTNOSRC"
152
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISONOSRC" "$CDROOTNOSRC"
128
if [ $? -ne 0 ] ; then exit 1 ; fi
153
if [ $? -ne 0 ] ; then exit 1 ; fi
129
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISOMICRO" "$CDROOTMICRO"
154
$GENISOIMAGE -input-charset cp437 -b boot.img -iso-level 1 -f -V SVAROG386 -o "$CDISOMICRO" "$CDROOTMICRO"
130
if [ $? -ne 0 ] ; then exit 1 ; fi
155
if [ $? -ne 0 ] ; then exit 1 ; fi
131
 
156
 
132
# compute the MD5 of the ISO files, taking care to include only the filename in it
157
# compute the MD5 of the ISO files, taking care to include only the filename in it
133
echo "computing md5 sums..."
158
echo "computing md5 sums..."
134
cd `dirname "$CDISO"`
159
cd `dirname "$CDISO"`