8,9 → 8,11 |
### parameters block starts here ############################################ |
|
REPOROOT=/srv/www/svarog386.viste.fr/repos/ |
REPOROOTNOSRC=/srv/www/svarog386.viste.fr/repos-nosrc/ |
BUILDIDX=/root/fdnpkg-buildidx/buildidx |
CDISODIR='/srv/www/svarog386.viste.fr/' |
CDROOT='/root/svarog386/cdroot' |
CDROOTNOSRC='/root/svarog386/cdrootnosrc' |
|
### parameters block ends here ############################################## |
|
17,39 → 19,64 |
# remember where we are, so we can return there once all is done |
origdir=`pwd` |
|
# first go to the root of repositories and refresh'em all |
cd $REPOROOT |
rm listing.txt |
$BUILDIDX base |
# clone the repositories into future 'no source' versions |
echo "cloning $REPOROOT to $REPOROOTNOSRC..." |
rsync -a --delete $REPOROOT $REPOROOTNOSRC |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX devel |
|
# sync the boot.img file from full version to the nosrc one |
cp $CDROOT/boot.img $CDROOTNOSRC/ |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX drivers |
|
# now strip the sources from the 'no source' clone |
find $REPOROOTNOSRC/ -iname '*.zip' -exec zip "{}" -d "SOURCE/*" ';' |
find $REPOROOTNOSRC/ -iname '*.zip' -exec zip "{}" -d "source/*" ';' |
find $REPOROOTNOSRC/ -iname '*.zip' -exec zip "{}" -d "Source/*" ';' |
|
# refresh all repositories |
rm $REPOROOT/listing.txt |
$BUILDIDX $REPOROOT/base && $BUILDIDX $REPOROOTNOSRC/base |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX edit |
$BUILDIDX $REPOROOT/devel && $BUILDIDX $REPOROOTNOSRC/devel |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX emulatrs |
$BUILDIDX $REPOROOT/drivers && $BUILDIDX $REPOROOTNOSRC/drivers |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX games |
$BUILDIDX $REPOROOT/edit && $BUILDIDX $REPOROOTNOSRC/edit |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX net |
$BUILDIDX $REPOROOT/emulatrs && $BUILDIDX $REPOROOTNOSRC/emulatrs |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX packers |
$BUILDIDX $REPOROOT/games && $BUILDIDX $REPOROOTNOSRC/games |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX sound |
$BUILDIDX $REPOROOT/net && $BUILDIDX $REPOROOTNOSRC/net |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX util |
$BUILDIDX $REPOROOT/packers && $BUILDIDX $REPOROOTNOSRC/packers |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX $REPOROOT/sound && $BUILDIDX $REPOROOTNOSRC/sound |
if [ $? -ne 0 ] ; then exit 1 ; fi |
$BUILDIDX $REPOROOT/util && $BUILDIDX $REPOROOTNOSRC/util |
if [ $? -ne 0 ] ; then exit 1 ; fi |
|
# compute a filename for the ISO file and build it |
CDISO="$CDISODIR/svarog386-`date +%Y%m%d-%H%M`.iso" |
# compute a filename for the ISO files and build it |
DATESTAMP=`date +%Y%m%d-%H%M` |
CDISO="$CDISODIR/svarog386-full-$DATESTAMP.iso" |
CDISONOSRC="$CDISODIR/svarog386-nosrc-$DATESTAMP.iso" |
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -o $CDISO.tmp $CDROOT |
if [ $? -ne 0 ] ; then exit 1 ; fi |
genisoimage -input-charset cp437 -b boot.img -iso-level 1 -f -o $CDISONOSRC.tmp $CDROOTNOSRC |
if [ $? -ne 0 ] ; then exit 1 ; fi |
mv $CDISO.tmp $CDISO |
mv $CDISONOSRC.tmp $CDISONOSRC |
|
# compute the MD5 of the ISO file, taking care to include only the filename in it |
# compute the MD5 of the ISO files, taking care to include only the filename in it |
echo "computing md5 sums..." |
cd `dirname $CDISO` |
md5sum `basename $CDISO` > $CDISO.md5 |
|
cd `dirname $CDISONOSRC` |
md5sum `basename $CDISONOSRC` > $CDISONOSRC.md5 |
|
cd "$origdir" |
|
echo "all done!" |
|
exit 0 |