View | Details | Raw Unified | Return to bug 62724
Collapse All | Expand All

(-)./gettext-0.12.1/gettext-tools/misc/gettextize.in.orig (-4 / +8 lines)
Lines 21-26 Link Here
21
# internationalize their package with the help of GNU gettext.  For
21
# internationalize their package with the help of GNU gettext.  For
22
# further information how to use it consult the GNU gettext manual.
22
# further information how to use it consult the GNU gettext manual.
23
23
24
umask 077
25
24
progname=$0
26
progname=$0
25
package=@PACKAGE@
27
package=@PACKAGE@
26
version=@VERSION@
28
version=@VERSION@
Lines 30-35 Link Here
30
prefix="@prefix@"
32
prefix="@prefix@"
31
gettext_dir="@datadir@/gettext"
33
gettext_dir="@datadir@/gettext"
32
34
35
TMPFILE=$(mktemp /tmp/conf.sh.XXXXXX) || exit 1
36
33
# Support for relocatability.
37
# Support for relocatability.
34
func_find_curr_installdir ()
38
func_find_curr_installdir ()
35
{
39
{
Lines 39-52 Link Here
39
    */* | *\\*) ;;
43
    */* | *\\*) ;;
40
    *) # Need to look in the PATH.
44
    *) # Need to look in the PATH.
41
      if test "${PATH_SEPARATOR+set}" != set; then
45
      if test "${PATH_SEPARATOR+set}" != set; then
42
        { echo "#! /bin/sh"; echo "exit 0"; } > /tmp/conf$$.sh
46
        { echo "#! /bin/sh"; echo "exit 0"; } > $TMPFILE
43
        chmod +x /tmp/conf$$.sh
47
        chmod +x $TMPFILE
44
        if (PATH="/nonexistent;/tmp"; conf$$.sh) >/dev/null 2>&1; then
48
        if (PATH="/nonexistent;/tmp"; $TMPFILE) >/dev/null 2>&1; then
45
          PATH_SEPARATOR=';'
49
          PATH_SEPARATOR=';'
46
        else
50
        else
47
          PATH_SEPARATOR=:
51
          PATH_SEPARATOR=:
48
        fi
52
        fi
49
        rm -f /tmp/conf$$.sh
53
        rm -f $TMPFILE
50
      fi
54
      fi
51
      save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
55
      save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
52
      for dir in $PATH; do
56
      for dir in $PATH; do

Return to bug 62724