automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-commit] [SCM] GNU Automake branch, java-work, updated. v1.11-3


From: Stefano Lattarini
Subject: [Automake-commit] [SCM] GNU Automake branch, java-work, updated. v1.11-364-ga3988ae
Date: Tue, 03 May 2011 08:08:58 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".

http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=a3988aeac8df3c9b4c1f2ea705ef96f00ab72ce5

The branch, java-work has been updated
       via  a3988aeac8df3c9b4c1f2ea705ef96f00ab72ce5 (commit)
      from  62cb9a4f4be71d740ff412f0ba7c7ef29feaa8a0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a3988aeac8df3c9b4c1f2ea705ef96f00ab72ce5
Author: Stefano Lattarini <address@hidden>
Date:   Tue May 3 00:48:02 2011 +0200

    java tests: use $PATH_SEPARATOR where appropriate
    
    * tests/java-compile-run-nested.test: Use `$PATH_SEPARATOR', not
    `:', to separate entries of extended PATH and CLASSPATH variables.
    * tests/java-compile-run-flat.test: Likewise.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                          |    7 +++++++
 tests/java-compile-run-flat.test   |   11 +++++++----
 tests/java-compile-run-nested.test |   11 +++++++----
 3 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0031f1e..d66603e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-03  Stefano Lattarini  <address@hidden>
+
+       java tests: use $PATH_SEPARATOR where appropriate
+       * tests/java-compile-run-nested.test: Use `$PATH_SEPARATOR', not
+       `:', to separate entries of extended PATH and CLASSPATH variables.
+       * tests/java-compile-run-flat.test: Likewise.
+
 2011-04-26  Stefano Lattarini  <address@hidden>
 
        java coverage: test JAVACFLAGS and AM_JAVACFLAGS
diff --git a/tests/java-compile-run-flat.test b/tests/java-compile-run-flat.test
index ccf7c11..76fde6c 100755
--- a/tests/java-compile-run-flat.test
+++ b/tests/java-compile-run-flat.test
@@ -26,6 +26,8 @@ required='java javac'
 
 set -e
 
+echo "AC_SUBST([PATH_SEPARATOR], ['$PATH_SEPARATOR'])" >> configure.in
+
 cat >> configure.in <<'END'
 AC_SUBST([JAVA], [java])
 AC_CONFIG_SRCDIR([PkgLocation.jin])
@@ -73,7 +75,8 @@ bin_SCRIPTS = jprog
 
 edit_script = sed -e 's|address@hidden@|$(JAVA)|g' \
                   -e 's|address@hidden@|$(javadir)|g' \
-                  -e 's|address@hidden@|$(SHELL)|g'
+                  -e 's|address@hidden@|$(SHELL)|g' \
+                  -e 's|address@hidden@|$(PATH_SEPARATOR)|g'
 
 jprog: jprog.sh
        rm -f $@ address@hidden
@@ -87,7 +90,7 @@ END
 
 cat > jprog.sh <<'END'
 address@hidden@
-CLASSPATH=${jprog_classpath-'@javadir@'}${CLASSPATH+":$CLASSPATH"}
+CLASSPATH=${jprog_classpath-'@javadir@'}${CLASSPATH+"@address@hidden"}
 export CLASSPATH
 case $# in
   0) exec @JAVA@ Main;;
@@ -150,11 +153,11 @@ TESTS_ENVIRONMENT = \
     if test x"$$jprog_doing_installcheck" != x"yes"; then \
         jprog_classpath='$(abs_top_builddir):$(abs_top_srcdir)'; \
         export jprog_classpath; \
-        PATH='$(abs_top_builddir)':$$PATH; \
+        PATH='$(abs_top_builddir)$(PATH_SEPARATOR)'$$PATH; \
         export PATH; \
     else \
         unset jprog_classpath || :; \
-        PATH='$(prefix)/bin':$$PATH; \
+        PATH='$(prefix)/bin$(PATH_SEPARATOR)'$$PATH; \
         export PATH; \
     fi; \
     config_time_prefix='@prefix@'; export config_time_prefix;
diff --git a/tests/java-compile-run-nested.test 
b/tests/java-compile-run-nested.test
index f5fcaa1..1a9abfd 100755
--- a/tests/java-compile-run-nested.test
+++ b/tests/java-compile-run-nested.test
@@ -27,6 +27,8 @@ required='java javac'
 
 set -e
 
+echo "AC_SUBST([PATH_SEPARATOR], ['$PATH_SEPARATOR'])" >> configure.in
+
 cat >> configure.in <<'END'
 AC_SUBST([JAVA], [java])
 AC_CONFIG_SRCDIR([jprog/PkgLocation.jin])
@@ -79,7 +81,8 @@ bin_SCRIPTS = jprog
 
 edit_script = sed -e 's|address@hidden@|$(JAVA)|g' \
                   -e 's|address@hidden@|$(jprogdatadir)|g' \
-                  -e 's|address@hidden@|$(SHELL)|g'
+                  -e 's|address@hidden@|$(SHELL)|g' \
+                  -e 's|address@hidden@|$(PATH_SEPARATOR)|g'
 
 jprog: jprog.sh
        rm -f $@ address@hidden
@@ -93,7 +96,7 @@ END
 
 cat > bin/jprog.sh <<'END'
 address@hidden@
-CLASSPATH=${jprog_classpath-'@jprogdatadir@'}${CLASSPATH+":$CLASSPATH"}
+CLASSPATH=${jprog_classpath-'@jprogdatadir@'}${CLASSPATH+"@address@hidden"}
 export CLASSPATH
 case $# in
   0) exec @JAVA@ jprog.Main;;
@@ -163,11 +166,11 @@ TESTS_ENVIRONMENT = \
     if test x"$$jprog_doing_installcheck" != x"yes"; then \
         jprog_classpath='$(abs_top_builddir):$(abs_top_srcdir)'; \
         export jprog_classpath; \
-        PATH='$(abs_top_builddir)/bin':$$PATH; \
+        PATH='$(abs_top_builddir)/bin$(PATH_SEPARATOR)'$$PATH; \
         export PATH; \
     else \
         unset jprog_classpath || :; \
-        PATH='$(prefix)/bin':$$PATH; \
+        PATH='$(prefix)/bin$(PATH_SEPARATOR)'$$PATH; \
         export PATH; \
     fi; \
     config_time_prefix='@prefix@'; export config_time_prefix;


hooks/post-receive
-- 
GNU Automake



reply via email to

[Prev in Thread] Current Thread [Next in Thread]