Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 854 → Rev 853

/build.sh
8,11 → 8,12
# a CORE package has been modified or the build script changed. This is usually
# done by the cron.sh script, itself called by a cron job.
#
# usage: ./build.sh outputdir buildver [noclean] > logfile
# usage: ./build.sh outputdir [noclean] > logfile
#
 
### parameters block starts here ############################################
 
CURDATE=`date +%Y%m%d`
REPOROOT=`realpath ./packages`
CUSTFILES=`realpath ./files`
 
20,13 → 21,12
 
### parameters block ends here ##############################################
 
# look for mandatory output dir and build id
if [ "x$2" == "x" ] ; then
echo "usage: build.sh outputdir buildver [noclean]"
# look for mandatory output dir
if [ "x$1" == "x" ] ; then
echo "usage: build.sh outputdir [noclean] > logfile"
exit 1
fi
CURDATE="$2"
PUBDIR=`realpath "$1"`
PUBDIR=`realpath "$1"`/$CURDATE
 
CDROOT="$PUBDIR/tmp_cdroot.build"
FLOPROOT="$PUBDIR/tmp_floproot.build"
128,6 → 128,10
echo "current time is `date` and it's a beautiful day somewhere in the world"
echo
 
# remove dest dir if it exists already, then recreate it empty
rm -rf "$PUBDIR"
mkdir "$PUBDIR"
 
mkdir "$CDROOT"
mkdir "$FLOPROOT"
 
/cron.sh
33,15 → 33,10
svn up "$SVNREPODIR"
php "$SVNREPODIR/buildidx/buildidx.php" "$SVNREPODIR/packages/" > "$SVNREPODIR/packages/_buildidx.log"
 
 
# do I need to rebuild the install images as well?
if [ "$NEEDTOREBUILD" -ne 0 ] ; then
CURDATE=`date +%Y%m%d`
DESTDIR="website/download/$CURDATE"
cd "$SVNREPODIR"
rm -rf "$DESTDIR"
mkdir "$DESTDIR"
./build.sh "$DESTDIR" "$CURDATE" > "$DESTDIR/build.log" 2>&1
./build.sh "website/download/" > "website/download/0000_lastbuild.log" 2>&1
fi
 
exit 0