From: Daiki Ueno Date: Mon, 21 Apr 2014 07:10:54 +0000 (+0900) Subject: examples: Quote shell variables in hello-java*/configure X-Git-Tag: v0.19~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59def9343c26de506b39d706383aa5f4ca11126e;p=thirdparty%2Fgettext.git examples: Quote shell variables in hello-java*/configure When running from xsmallpot.sh, embedded shell-script snippets are stripped off from configure.ac and some variables are not set. Make sure to quote them to avoid error. * hello-java/configure.ac: Quote $BUILDJAVA. * hello-java-awt/configure.ac: Quote $BUILDJAVAEXE and $BUILDJAVA. * hello-java-qtjambi/configure.ac: Likewise. * hello-java-swing/configure.ac: Likewise. --- diff --git a/gettext-tools/examples/ChangeLog b/gettext-tools/examples/ChangeLog index dbef73335..60314e246 100644 --- a/gettext-tools/examples/ChangeLog +++ b/gettext-tools/examples/ChangeLog @@ -1,3 +1,14 @@ +2014-04-21 Daiki Ueno + + examples: Quote shell variables in hello-java*/configure + When running from xsmallpot.sh, embedded shell-script snippets are + stripped off from configure.ac and some variables are not set. + Make sure to quote them to avoid error. + * hello-java/configure.ac: Quote $BUILDJAVA. + * hello-java-awt/configure.ac: Quote $BUILDJAVAEXE and $BUILDJAVA. + * hello-java-qtjambi/configure.ac: Likewise. + * hello-java-swing/configure.ac: Likewise. + 2014-04-15 Daiki Ueno examples: Add a new example 'hello-c-gnome3' diff --git a/gettext-tools/examples/hello-java-awt/configure.ac b/gettext-tools/examples/hello-java-awt/configure.ac index da5b758d2..3eae8bed2 100644 --- a/gettext-tools/examples/hello-java-awt/configure.ac +++ b/gettext-tools/examples/hello-java-awt/configure.ac @@ -18,7 +18,7 @@ else BUILDJAVAEXE=no fi AC_SUBST(BUILDJAVAEXE) -AM_CONDITIONAL([USEJEXE], [test $BUILDJAVAEXE = yes]) +AM_CONDITIONAL([USEJEXE], [test "$BUILDJAVAEXE" = yes]) AC_PROG_RANLIB dnl Check whether we can execute Java programs. @@ -32,7 +32,7 @@ else BUILDJAVA=no fi AC_SUBST(BUILDJAVA) -if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then +if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then TESTJAVA=yes else TESTJAVA=no diff --git a/gettext-tools/examples/hello-java-qtjambi/configure.ac b/gettext-tools/examples/hello-java-qtjambi/configure.ac index f62d652ba..3b3e6884a 100644 --- a/gettext-tools/examples/hello-java-qtjambi/configure.ac +++ b/gettext-tools/examples/hello-java-qtjambi/configure.ac @@ -20,7 +20,7 @@ dnl BUILDJAVAEXE=no dnl fi BUILDJAVAEXE=no AC_SUBST(BUILDJAVAEXE) -AM_CONDITIONAL([USEJEXE], [test $BUILDJAVAEXE = yes]) +AM_CONDITIONAL([USEJEXE], [test "$BUILDJAVAEXE" = yes]) AC_PROG_RANLIB dnl Check whether we can execute Java programs. @@ -34,7 +34,7 @@ else BUILDJAVA=no fi AC_SUBST(BUILDJAVA) -if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then +if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then TESTJAVA=yes else TESTJAVA=no diff --git a/gettext-tools/examples/hello-java-swing/configure.ac b/gettext-tools/examples/hello-java-swing/configure.ac index 838224ce6..96fd903ef 100644 --- a/gettext-tools/examples/hello-java-swing/configure.ac +++ b/gettext-tools/examples/hello-java-swing/configure.ac @@ -18,7 +18,7 @@ else BUILDJAVAEXE=no fi AC_SUBST(BUILDJAVAEXE) -AM_CONDITIONAL([USEJEXE], [test $BUILDJAVAEXE = yes]) +AM_CONDITIONAL([USEJEXE], [test "$BUILDJAVAEXE" = yes]) AC_PROG_RANLIB dnl Check whether we can execute Java programs. @@ -32,7 +32,7 @@ else BUILDJAVA=no fi AC_SUBST(BUILDJAVA) -if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then +if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then TESTJAVA=yes else TESTJAVA=no diff --git a/gettext-tools/examples/hello-java/configure.ac b/gettext-tools/examples/hello-java/configure.ac index 030c636b8..6b7a94b59 100644 --- a/gettext-tools/examples/hello-java/configure.ac +++ b/gettext-tools/examples/hello-java/configure.ac @@ -32,7 +32,7 @@ else BUILDJAVA=no fi AC_SUBST(BUILDJAVA) -if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then +if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then TESTJAVA=yes else TESTJAVA=no