harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlyd...@apache.org
Subject svn commit: r326499 - /incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/test/build.sh
Date Wed, 19 Oct 2005 09:30:13 GMT
Author: dlydick
Date: Wed Oct 19 02:30:05 2005
New Revision: 326499

URL: http://svn.apache.org/viewcvs?rev=326499&view=rev
Log:
Make sure target 'bin' directory is writeable.

Rigorously process intermediate and final target permissions.

Minor documentation adjustments.

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/test/build.sh

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/test/build.sh
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/test/build.sh?rev=326499&r1=326498&r2=326499&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/test/build.sh (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/test/build.sh Wed Oct
19 02:30:05 2005
@@ -20,12 +20,15 @@
 # @see @link ./common.sh ./common.sh@endlink
 #
 #
-# @todo  A Windows .BAT version of this script needs to be written
+# @todo  HARMONY-6-test-build.sh-1 A Windows .BAT version of this
+#        script needs to be written
 #
 #
 # @section Control
 #
-# \$URL$ \$Id$
+# \$URL$
+#
+# \$Id$
 #
 # Copyright 2005 The Apache Software Foundation
 # or its licensors, as applicable.
@@ -49,6 +52,7 @@
 # @date \$LastChangedDate$
 #
 # @author \$LastChangedBy$
+#
 #         Original code contributed by Daniel Lydick on 09/28/2005.
 #
 # @section Reference
@@ -88,13 +92,30 @@
 # Build Java class files from source code and create JAR file
 #
 
+if test -d bin
+then
+    chmod -R +w bin
+fi
+
 javac -g -sourcepath src -d bin $SOURCES
 rc=$?
 
 if test 0 -eq $rc
 then
+    if test -f $TMP_LIBRARY
+    then
+        chmod +w $TMP_LIBRARY
+        rm -f $TMP_LIBRARY
+    fi
+
     jar cf $TMP_LIBRARY -C bin .
     rc=$?
+
+    if test -f $TARGET_LIBRARY
+    then
+        chmod +w $TARGET_LIBRARY
+        rm -f $TARGET_LIBRARY
+    fi
     mv $TMP_LIBRARY $TARGET_LIBRARY # Avoid partial JAR file inside self
 fi
 



Mime
View raw message