summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-11-11 08:03:10 +0000
committerMichael Koch <konqueror@gmx.de>2004-11-11 08:03:10 +0000
commit983882ca28e240ab6fb19d0db8039502847c0c4b (patch)
tree8af9ae9388036800e394226e6884690cc565767b /scripts
parent86f24c67a1165b1b890b86de0ba60c09b9ffed5a (diff)
downloadclasspath-983882ca28e240ab6fb19d0db8039502847c0c4b.tar.gz
2004-11-11 Michael Koch <konqueror@gmx.de>
* scripts/classpath-build: Use autogen.sh script. Added --with-glibj=both to configure. Make sure logfile is empty.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/classpath-build19
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/classpath-build b/scripts/classpath-build
index 0d0e38378..cd0e7d63e 100755
--- a/scripts/classpath-build
+++ b/scripts/classpath-build
@@ -1,5 +1,6 @@
#!/bin/sh
+# cvs may timeout ...
set -e
export CVS_RSH=ssh
@@ -12,6 +13,8 @@ DATE=`date +"%Y%m%d"`
OUTPUTDIR=$HOME/public_html/classpath/daily
LOGFILE=$OUTPUTDIR/classpath-$DATE.log
+echo -n > $LOGFILE
+
if [ -d $CLASSPATH_CVSSRCDIR ] ; then
echo "update cvs source tree" >> $LOGFILE
cd $CLASSPATH_CVSSRCDIR
@@ -22,8 +25,12 @@ if [ -d $CLASSPATH_SRCDIR ] ; then
# delete old sources
echo "delete old source tree" >> $LOGFILE
+
+ # workaround for automake safety behaviour with umask
+ chmod u+w -R $CLASSPATH_SRCDIR
+
rm -rf $CLASSPATH_SRCDIR
-
+
fi
echo "copy cvs tree to source tree" >> $LOGFILE
@@ -37,10 +44,7 @@ if [ -f configure.ac ] ; then
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
+./autogen.sh >> $LOGFILE 2>&1
# create build directory
mkdir build
@@ -48,7 +52,7 @@ 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
+../configure --prefix=$HOME/local/classpath --with-jikes=/usr/bin/jikes --enable-glibj=both --enable-jni --enable-gtk-peer --enable-regen-headers >> $LOGFILE 2>&1
make >> $LOGFILE 2>&1
make install >> $LOGFILE 2>&1
@@ -59,3 +63,6 @@ cp classpath-$DATE.tar.gz $OUTPUTDIR
cd $OUTPUTDIR
ln -sf classpath-$DATE.tar.gz LATEST-SNAPSHOT
ln -sf classpath-$DATE.log LATEST-BUILDLOG
+
+exit 0
+