/[classpath]/classpath/scripts/classpath-build
ViewVC logotype

Diff of /classpath/scripts/classpath-build

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mkoch, Sun Jan 18 22:16:40 2004 UTC revision 1.1.2.1 by gnu_andrew, Sun Jan 16 02:14:50 2005 UTC
# Line 1  Line 1 
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
# Line 12  DATE=`date +"%Y%m%d"` Line 13  DATE=`date +"%Y%m%d"`
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
# Line 22  if [ -d $CLASSPATH_SRCDIR ] ; then Line 25  if [ -d $CLASSPATH_SRCDIR ] ; then
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
# Line 37  if [ -f configure.ac ] ; then Line 44  if [ -f configure.ac ] ; then
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
# Line 48  cd build Line 52  cd 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    
# Line 59  cp classpath-$DATE.tar.gz $OUTPUTDIR Line 63  cp classpath-$DATE.tar.gz $OUTPUTDIR
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26