mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
gettextize: substitute PATH_SEPARATOR at configure time
This commit is contained in:
parent
a3f53bc184
commit
3a526d4c8c
@ -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
|
||||
|
||||
@ -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=.
|
||||
|
||||
@ -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=.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user