gettextize: substitute PATH_SEPARATOR at configure time

This commit is contained in:
Daiki Ueno 2013-02-28 16:55:58 +09:00
parent a3f53bc184
commit 3a526d4c8c
3 changed files with 11 additions and 24 deletions

View 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

View 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=.

View 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=.