1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
|
# cvs may timeout ... |
4 |
set -e |
set -e |
5 |
|
|
6 |
export CVS_RSH=ssh |
export CVS_RSH=ssh |
13 |
OUTPUTDIR=$HOME/public_html/classpath/daily |
OUTPUTDIR=$HOME/public_html/classpath/daily |
14 |
LOGFILE=$OUTPUTDIR/classpath-$DATE.log |
LOGFILE=$OUTPUTDIR/classpath-$DATE.log |
15 |
|
|
16 |
|
echo -n > $LOGFILE |
17 |
|
|
18 |
if [ -d $CLASSPATH_CVSSRCDIR ] ; then |
if [ -d $CLASSPATH_CVSSRCDIR ] ; then |
19 |
echo "update cvs source tree" >> $LOGFILE |
echo "update cvs source tree" >> $LOGFILE |
20 |
cd $CLASSPATH_CVSSRCDIR |
cd $CLASSPATH_CVSSRCDIR |
25 |
|
|
26 |
# delete old sources |
# delete old sources |
27 |
echo "delete old source tree" >> $LOGFILE |
echo "delete old source tree" >> $LOGFILE |
28 |
|
|
29 |
|
# workaround for automake safety behaviour with umask |
30 |
|
chmod u+w -R $CLASSPATH_SRCDIR |
31 |
|
|
32 |
rm -rf $CLASSPATH_SRCDIR |
rm -rf $CLASSPATH_SRCDIR |
33 |
|
|
34 |
fi |
fi |
35 |
|
|
36 |
echo "copy cvs tree to source tree" >> $LOGFILE |
echo "copy cvs tree to source tree" >> $LOGFILE |
44 |
fi |
fi |
45 |
|
|
46 |
# generate autofriends stuff |
# generate autofriends stuff |
47 |
aclocal -I /usr/local/share/aclocal -I . >> $LOGFILE 2>&1 |
./autogen.sh >> $LOGFILE 2>&1 |
|
autoheader >> $LOGFILE 2>&1 |
|
|
autoconf >> $LOGFILE 2>&1 |
|
|
automake >> $LOGFILE 2>&1 |
|
48 |
|
|
49 |
# create build directory |
# create build directory |
50 |
mkdir build |
mkdir build |
52 |
|
|
53 |
# configure and build classpath |
# configure and build classpath |
54 |
export LD_LIBRARY_PATH=/usr/local/lib |
export LD_LIBRARY_PATH=/usr/local/lib |
55 |
../configure --prefix=$HOME/local/classpath --with-jikes=/usr/bin/jikes --enable-jni --enable-gtk-peer --enable-regen-headers >> $LOGFILE 2>&1 |
../configure --prefix=$HOME/local/classpath --with-jikes=/usr/bin/jikes --enable-glibj=both --enable-jni --enable-gtk-peer --enable-regen-headers >> $LOGFILE 2>&1 |
56 |
make >> $LOGFILE 2>&1 |
make >> $LOGFILE 2>&1 |
57 |
make install >> $LOGFILE 2>&1 |
make install >> $LOGFILE 2>&1 |
58 |
|
|
63 |
cd $OUTPUTDIR |
cd $OUTPUTDIR |
64 |
ln -sf classpath-$DATE.tar.gz LATEST-SNAPSHOT |
ln -sf classpath-$DATE.tar.gz LATEST-SNAPSHOT |
65 |
ln -sf classpath-$DATE.log LATEST-BUILDLOG |
ln -sf classpath-$DATE.log LATEST-BUILDLOG |
66 |
|
|
67 |
|
exit 0 |
68 |
|
|