]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
gettextize: substitute PATH_SEPARATOR at configure time
authorDaiki Ueno <ueno@gnu.org>
Thu, 28 Feb 2013 07:55:58 +0000 (16:55 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 28 Feb 2013 07:55:58 +0000 (16:55 +0900)
gettext-tools/misc/ChangeLog
gettext-tools/misc/autopoint.in
gettext-tools/misc/gettextize.in

index 6351aceebdee7e3d55d5d53129b21b88905e1f55..32ba28f145f6df183123e4926cd18d347fdbc393 100644 (file)
@@ -1,3 +1,12 @@
+2013-02-28  Daiki Ueno  <ueno@gnu.org>
+
+       * autopoint.in (gettext_dir): Substitute PATH_SEPARATOR at
+       configure time.
+       * gettextize.in (gettext_dir): Substitute PATH_SEPARATOR at
+       configure time.
+       Suggested by Stefano Lattarini in
+       <http://lists.gnu.org/archive/html/bug-gettext/2012-12/msg00066.html>.
+
 2013-01-07  Daiki Ueno  <ueno@gnu.org>
 
        * autopoint.in: Extract version number from configure.ac in a more
index 717b0db5ea9bea22180342ba65d26ef22764ace8..d0725bc75241f66bb775f59e667f82d714a6faee 100644 (file)
@@ -69,18 +69,7 @@ func_find_curr_installdir ()
   case "$curr_executable" in
     */* | *\\*) ;;
     *) # Need to look in the PATH.
-      if test "${PATH_SEPARATOR+set}" != set; then
-        func_tmpdir
-        { echo "#! /bin/sh"; echo "exit 0"; } > "$tmp"/conf.sh
-        chmod +x "$tmp"/conf.sh
-        if (PATH="/nonexistent;$tmp"; conf.sh) >/dev/null 2>&1; then
-          PATH_SEPARATOR=';'
-        else
-          PATH_SEPARATOR=:
-        fi
-        rm -rf "$tmp"
-      fi
-      save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
+      save_IFS="$IFS"; IFS="${PATH_SEPARATOR='@PATH_SEPARATOR@'}"
       for dir in $PATH; do
         IFS="$save_IFS"
         test -z "$dir" && dir=.
index c5ee610142851b1df809769010c2faf155182748..b21af24a8999859ea7c6071faf0e6cf779567a17 100644 (file)
@@ -69,18 +69,7 @@ func_find_curr_installdir ()
   case "$curr_executable" in
     */* | *\\*) ;;
     *) # Need to look in the PATH.
-      if test "${PATH_SEPARATOR+set}" != set; then
-        func_tmpdir
-        { echo "#! /bin/sh"; echo "exit 0"; } > "$tmp"/conf.sh
-        chmod +x "$tmp"/conf.sh
-        if (PATH="/nonexistent;$tmp"; conf.sh) >/dev/null 2>&1; then
-          PATH_SEPARATOR=';'
-        else
-          PATH_SEPARATOR=:
-        fi
-        rm -rf "$tmp"
-      fi
-      save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
+      save_IFS="$IFS"; IFS="${PATH_SEPARATOR='@PATH_SEPARATOR@'}"
       for dir in $PATH; do
         IFS="$save_IFS"
         test -z "$dir" && dir=.