diff options
author | Michael Koch <konqueror@gmx.de> | 2004-01-18 22:16:40 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2004-01-18 22:16:40 +0000 |
commit | 82bee77b79e17b1de6fa86db99e39de04b4cf4d0 (patch) | |
tree | 8b7b8a4f25893e3b45eccf3286bc8c288666eeae /scripts | |
parent | e6bc39847fbee8b7e5972ceb442b714c6468ef62 (diff) | |
download | classpath-82bee77b79e17b1de6fa86db99e39de04b4cf4d0.tar.gz |
2004-01-18 Michael Koch <konqueror@gmx.de>
* scripts/classpath-build,
scripts/classpath-daily: New files for regular classpath
compilation/testing.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/classpath-build | 61 | ||||
-rwxr-xr-x | scripts/classpath-daily | 17 |
2 files changed, 78 insertions, 0 deletions
diff --git a/scripts/classpath-build b/scripts/classpath-build new file mode 100755 index 000000000..0d0e38378 --- /dev/null +++ b/scripts/classpath-build @@ -0,0 +1,61 @@ +#!/bin/sh + +set -e + +export CVS_RSH=ssh + +CLASSPATH_CVSSRCDIR=$HOME/src/cvs/classpath +CLASSPATH_SRCDIR=$HOME/src/classpath +CLASSPATH_BUILDDIR=$HOME/src/classpath/build + +DATE=`date +"%Y%m%d"` +OUTPUTDIR=$HOME/public_html/classpath/daily +LOGFILE=$OUTPUTDIR/classpath-$DATE.log + +if [ -d $CLASSPATH_CVSSRCDIR ] ; then + echo "update cvs source tree" >> $LOGFILE + cd $CLASSPATH_CVSSRCDIR + cvs -z 3 update >> $LOGFILE 2>&1 +fi + +if [ -d $CLASSPATH_SRCDIR ] ; then + + # delete old sources + echo "delete old source tree" >> $LOGFILE + rm -rf $CLASSPATH_SRCDIR + +fi + +echo "copy cvs tree to source tree" >> $LOGFILE +cp -a $CLASSPATH_CVSSRCDIR $CLASSPATH_SRCDIR +cd $CLASSPATH_SRCDIR + +# patch version in configure.ac +if [ -f configure.ac ] ; then + mv configure.ac configure.ac.orig + sed "s/, \[.*cvs\]/, [$DATE]/" < configure.ac.orig > configure.ac +fi + +# generate autofriends stuff +aclocal -I /usr/local/share/aclocal -I . >> $LOGFILE 2>&1 +autoheader >> $LOGFILE 2>&1 +autoconf >> $LOGFILE 2>&1 +automake >> $LOGFILE 2>&1 + +# create build directory +mkdir build +cd build + +# configure and build classpath +export LD_LIBRARY_PATH=/usr/local/lib +../configure --prefix=$HOME/local/classpath --with-jikes=/usr/bin/jikes --enable-jni --enable-gtk-peer --enable-regen-headers >> $LOGFILE 2>&1 +make >> $LOGFILE 2>&1 +make install >> $LOGFILE 2>&1 + +make dist >> $LOGFILE 2>&1 +#make distcheck >> $LOGFILE 2>&1 +cp classpath-$DATE.tar.gz $OUTPUTDIR + +cd $OUTPUTDIR +ln -sf classpath-$DATE.tar.gz LATEST-SNAPSHOT +ln -sf classpath-$DATE.log LATEST-BUILDLOG diff --git a/scripts/classpath-daily b/scripts/classpath-daily new file mode 100755 index 000000000..c74052773 --- /dev/null +++ b/scripts/classpath-daily @@ -0,0 +1,17 @@ +#!/bin/sh + +DATE=`date +"%Y%m%d"` +OUTPUTDIR=$HOME/public_html/classpath/daily +LOGFILE=$OUTPUTDIR/classpath-$DATE.log +FAILEDLOG=$OUTPUTDIR/classpath-failed-$DATE.log +MAIL="konqueror@gmx.de" + +/home/mkoch/bin/classpath-build + +if test "$?" = "1" ; then + tail --lines=100 $LOGFILE > $FAILEDLOG + + mail $MAIL -s "classpath daily snapshot $DATE FAILED" < $FAILEDLOG +else + mail $MAIL -s "classpath daily snapshot $DATE SUCCESSFUL" < /dev/null > /dev/null +fi |