8 CLASSPATH_CVSSRCDIR
=$HOME/src
/cvs
/classpath
9 CLASSPATH_SRCDIR
=$HOME/src
/classpath
10 CLASSPATH_BUILDDIR
=$HOME/src
/classpath
/build
13 OUTPUTDIR
=$HOME/public_html
/classpath
/daily
14 LOGFILE
=$OUTPUTDIR/classpath-
$DATE.log
18 if [ -d $CLASSPATH_CVSSRCDIR ] ; then
19 echo "update cvs source tree" >> $LOGFILE
20 cd $CLASSPATH_CVSSRCDIR
21 cvs
-z 3 update
>> $LOGFILE 2>&1
24 if [ -d $CLASSPATH_SRCDIR ] ; then
27 echo "delete old source tree" >> $LOGFILE
29 # workaround for automake safety behaviour with umask
30 chmod u
+w
-R $CLASSPATH_SRCDIR
32 rm -rf $CLASSPATH_SRCDIR
36 echo "copy cvs tree to source tree" >> $LOGFILE
37 cp -a $CLASSPATH_CVSSRCDIR $CLASSPATH_SRCDIR
40 # patch version in configure.ac
41 if [ -f configure.ac
] ; then
42 mv configure.ac configure.ac.orig
43 sed "s/, \[.*cvs\]/, [$DATE]/" < configure.ac.orig
> configure.ac
46 # generate autofriends stuff
47 .
/autogen.sh
>> $LOGFILE 2>&1
49 # create build directory
53 # configure and build classpath
54 export LD_LIBRARY_PATH
=/usr
/local
/lib
55 ..
/configure
--prefix=$HOME/local
/classpath
--with-jikes=/usr
/bin
/jikes
--enable-glibj=both
--enable-jni --enable-gtk-peer --enable-regen-headers >> $LOGFILE 2>&1
57 make install >> $LOGFILE 2>&1
59 make dist
>> $LOGFILE 2>&1
60 #make distcheck >> $LOGFILE 2>&1
61 cp classpath-
$DATE.
tar.gz
$OUTPUTDIR
64 ln -sf classpath-
$DATE.
tar.gz LATEST-SNAPSHOT
65 ln -sf classpath-
$DATE.log LATEST-BUILDLOG