Subversion Repositories SvarDOS

Rev

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

Rev 2 Rev 11
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
-
 
2
#
-
 
3
# This script generates indexes of Svarog386 repositories and builds the ISO
-
 
4
# CD images. It should be executed each time that a package file have been
-
 
5
# modified, added or removed from any of the repositories.
-
 
6
#
-
 
7
 
-
 
8
### parameters block starts here ############################################
2
 
9
 
3
REPOROOT=/srv/www/svarog386.viste.fr/repos/
10
REPOROOT=/srv/www/svarog386.viste.fr/repos/
4
BUILDIDX=/root/fdnpkg-buildidx/buildidx
11
BUILDIDX=/root/fdnpkg-buildidx/buildidx
-
 
12
CDISODIR='/srv/www/svarog386.viste.fr/'
-
 
13
CDROOT='/root/svarog386/cdroot'
-
 
14
 
-
 
15
### parameters block ends here ##############################################
-
 
16
 
-
 
17
# remember where we are, so we can return there once all is done
-
 
18
origdir=`pwd`
5
 
19
 
-
 
20
# first go to the root of repositories and refresh'em all
6
cd $REPOROOT
21
cd $REPOROOT
7
rm listing.txt
22
rm listing.txt
8
$BUILDIDX base
23
$BUILDIDX base
9
if [ $? -ne 0 ] ; then exit 1 ; fi
24
if [ $? -ne 0 ] ; then exit 1 ; fi
10
$BUILDIDX devel
25
$BUILDIDX devel
Line 23... Line 38...
23
if [ $? -ne 0 ] ; then exit 1 ; fi
38
if [ $? -ne 0 ] ; then exit 1 ; fi
24
$BUILDIDX sound
39
$BUILDIDX sound
25
if [ $? -ne 0 ] ; then exit 1 ; fi
40
if [ $? -ne 0 ] ; then exit 1 ; fi
26
$BUILDIDX util
41
$BUILDIDX util
27
 
42
 
-
 
43
# compute a filename for the ISO file and build it
-
 
44
CDISO="$CDISODIR/svarog386-`date +%Y%m%d-%H%M`.iso"
28
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -o ../svarog386.iso cdroot
45
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -o $CDISO.tmp $CDROOT
-
 
46
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
47
mv $CDISO.tmp $CDISO
29
cd ..
48
 
-
 
49
# compute the MD5 of the ISO file, taking care to include only the filename in it
-
 
50
cd `dirname $CDISO`
30
md5sum svarog386.iso > svarog386.iso.md5
51
md5sum `basename $CDISO` > $CDISO.md5
-
 
52
 
-
 
53
cd "$origdir"
31
 
54
 
32
exit 0
55
exit 0