Subversion Repositories SvarDOS

Rev

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

Rev 12 Rev 16
Line 6... Line 6...
6
#
6
#
7
 
7
 
8
### parameters block starts here ############################################
8
### parameters block starts here ############################################
9
 
9
 
10
REPOROOT=/srv/www/svarog386.viste.fr/repos/
10
REPOROOT=/srv/www/svarog386.viste.fr/repos/
-
 
11
REPOROOTNOSRC=/srv/www/svarog386.viste.fr/repos-nosrc/
11
BUILDIDX=/root/fdnpkg-buildidx/buildidx
12
BUILDIDX=/root/fdnpkg-buildidx/buildidx
12
CDISODIR='/srv/www/svarog386.viste.fr/'
13
CDISODIR='/srv/www/svarog386.viste.fr/'
13
CDROOT='/root/svarog386/cdroot'
14
CDROOT='/root/svarog386/cdroot'
-
 
15
CDROOTNOSRC='/root/svarog386/cdrootnosrc'
14
 
16
 
15
### parameters block ends here ##############################################
17
### parameters block ends here ##############################################
16
 
18
 
17
# remember where we are, so we can return there once all is done
19
# remember where we are, so we can return there once all is done
18
origdir=`pwd`
20
origdir=`pwd`
19
 
21
 
20
# first go to the root of repositories and refresh'em all
22
# clone the repositories into future 'no source' versions
21
cd $REPOROOT
23
echo "cloning $REPOROOT to $REPOROOTNOSRC..."
22
rm listing.txt
24
rsync -a --delete $REPOROOT $REPOROOTNOSRC
23
$BUILDIDX base
-
 
24
if [ $? -ne 0 ] ; then exit 1 ; fi
25
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
26
 
-
 
27
# sync the boot.img file from full version to the nosrc one
-
 
28
cp $CDROOT/boot.img $CDROOTNOSRC/
-
 
29
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
30
 
-
 
31
# now strip the sources from the 'no source' clone
-
 
32
find $REPOROOTNOSRC/ -iname '*.zip' -exec zip "{}" -d "SOURCE/*" ';'
-
 
33
find $REPOROOTNOSRC/ -iname '*.zip' -exec zip "{}" -d "source/*" ';'
-
 
34
find $REPOROOTNOSRC/ -iname '*.zip' -exec zip "{}" -d "Source/*" ';'
-
 
35
 
25
$BUILDIDX devel
36
# refresh all repositories
-
 
37
rm $REPOROOT/listing.txt
-
 
38
$BUILDIDX $REPOROOT/base && $BUILDIDX $REPOROOTNOSRC/base
-
 
39
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
40
$BUILDIDX $REPOROOT/devel && $BUILDIDX $REPOROOTNOSRC/devel
26
if [ $? -ne 0 ] ; then exit 1 ; fi
41
if [ $? -ne 0 ] ; then exit 1 ; fi
27
$BUILDIDX drivers
42
$BUILDIDX $REPOROOT/drivers && $BUILDIDX $REPOROOTNOSRC/drivers
28
if [ $? -ne 0 ] ; then exit 1 ; fi
43
if [ $? -ne 0 ] ; then exit 1 ; fi
29
$BUILDIDX edit
44
$BUILDIDX $REPOROOT/edit && $BUILDIDX $REPOROOTNOSRC/edit
30
if [ $? -ne 0 ] ; then exit 1 ; fi
45
if [ $? -ne 0 ] ; then exit 1 ; fi
31
$BUILDIDX emulatrs
46
$BUILDIDX $REPOROOT/emulatrs && $BUILDIDX $REPOROOTNOSRC/emulatrs
32
if [ $? -ne 0 ] ; then exit 1 ; fi
47
if [ $? -ne 0 ] ; then exit 1 ; fi
33
$BUILDIDX games
48
$BUILDIDX $REPOROOT/games && $BUILDIDX $REPOROOTNOSRC/games
34
if [ $? -ne 0 ] ; then exit 1 ; fi
49
if [ $? -ne 0 ] ; then exit 1 ; fi
35
$BUILDIDX net
50
$BUILDIDX $REPOROOT/net && $BUILDIDX $REPOROOTNOSRC/net
36
if [ $? -ne 0 ] ; then exit 1 ; fi
51
if [ $? -ne 0 ] ; then exit 1 ; fi
37
$BUILDIDX packers
52
$BUILDIDX $REPOROOT/packers && $BUILDIDX $REPOROOTNOSRC/packers
38
if [ $? -ne 0 ] ; then exit 1 ; fi
53
if [ $? -ne 0 ] ; then exit 1 ; fi
39
$BUILDIDX sound
54
$BUILDIDX $REPOROOT/sound && $BUILDIDX $REPOROOTNOSRC/sound
-
 
55
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
56
$BUILDIDX $REPOROOT/util && $BUILDIDX $REPOROOTNOSRC/util
40
if [ $? -ne 0 ] ; then exit 1 ; fi
57
if [ $? -ne 0 ] ; then exit 1 ; fi
41
$BUILDIDX util
-
 
42
 
58
 
43
# compute a filename for the ISO file and build it
59
# compute a filename for the ISO files and build it
-
 
60
DATESTAMP=`date +%Y%m%d-%H%M`
44
CDISO="$CDISODIR/svarog386-`date +%Y%m%d-%H%M`.iso"
61
CDISO="$CDISODIR/svarog386-full-$DATESTAMP.iso"
-
 
62
CDISONOSRC="$CDISODIR/svarog386-nosrc-$DATESTAMP.iso"
45
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -o $CDISO.tmp $CDROOT
63
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -o $CDISO.tmp $CDROOT
46
if [ $? -ne 0 ] ; then exit 1 ; fi
64
if [ $? -ne 0 ] ; then exit 1 ; fi
-
 
65
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -o $CDISONOSRC.tmp $CDROOTNOSRC
-
 
66
if [ $? -ne 0 ] ; then exit 1 ; fi
47
mv $CDISO.tmp $CDISO
67
mv $CDISO.tmp $CDISO
-
 
68
mv $CDISONOSRC.tmp $CDISONOSRC
48
 
69
 
49
# compute the MD5 of the ISO file, taking care to include only the filename in it
70
# compute the MD5 of the ISO files, taking care to include only the filename in it
-
 
71
echo "computing md5 sums..."
50
cd `dirname $CDISO`
72
cd `dirname $CDISO`
51
md5sum `basename $CDISO` > $CDISO.md5
73
md5sum `basename $CDISO` > $CDISO.md5
52
 
74
 
-
 
75
cd `dirname $CDISONOSRC`
-
 
76
md5sum `basename $CDISONOSRC` > $CDISONOSRC.md5
-
 
77
 
53
cd "$origdir"
78
cd "$origdir"
54
 
79
 
-
 
80
echo "all done!"
-
 
81
 
55
exit 0
82
exit 0