[kaffe] CVS kaffe (guilhem): Fix for compiling when building java library outside the source tree.
Kaffe CVS
Kaffe Mailing List <kaffe@kaffe.org>
Sat Aug 30 13:14:02 2003
PatchSet 3998
Date: 2003/08/30 20:12:03
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Fix for compiling when building java library outside the source tree.
Members:
ChangeLog:1.1594->1.1595
libraries/javalib/rebuildLib.in:1.35->1.36
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1594 kaffe/ChangeLog:1.1595
--- kaffe/ChangeLog:1.1594 Sat Aug 30 16:50:21 2003
+++ kaffe/ChangeLog Sat Aug 30 20:12:03 2003
@@ -1,5 +1,11 @@
2003-08-30 Guilhem Lavaux <guilhem@kaffe.org>
+ * libraries/javalib/rebuildLib.in: Check if SRCDIR represents an
+ absolute path. If it is not the case concatenant a `pwd` just in front
+ of it.
+
+2003-08-30 Guilhem Lavaux <guilhem@kaffe.org>
+
* libraries/javalib/bootstrap.classlist: updated to be able to run
KJC.
Index: kaffe/libraries/javalib/rebuildLib.in
diff -u kaffe/libraries/javalib/rebuildLib.in:1.35 kaffe/libraries/javalib/rebuildLib.in:1.36
--- kaffe/libraries/javalib/rebuildLib.in:1.35 Wed Jun 11 22:23:30 2003
+++ kaffe/libraries/javalib/rebuildLib.in Sat Aug 30 20:12:04 2003
@@ -25,6 +25,10 @@
LIBDIR=`CDPATH=: && cd $LIBDIR && pwd`
VERBOSE=
+if [ -z `echo $SRCDIR | egrep '^/.*'` ]; then
+ SRCDIR="`pwd`/$SRCDIR"
+fi
+
if [ -z "$JIKES" ] ; then
if [ -z "$JAVA" ]; then
test -f ${TOPBLD}/BUILD_ENVIRONMENT &&