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

(-)./gettext-0.12.1/gettext-tools/misc/autopoint.in.orig (-4 / +7 lines)
Lines 21-29 Link Here
21
# of packages which are internationalized with the help of GNU gettext.  For
21
# of packages which are internationalized 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@
29
TMPFILE=$(mktemp /tmp/confi.sh.XXXXXX) || exit 1
27
30
28
# Set variables
31
# Set variables
29
# - gettext_dir     directory where the sources are stored.
32
# - gettext_dir     directory where the sources are stored.
Lines 39-52 Link Here
39
    */* | *\\*) ;;
42
    */* | *\\*) ;;
40
    *) # Need to look in the PATH.
43
    *) # Need to look in the PATH.
41
      if test "${PATH_SEPARATOR+set}" != set; then
44
      if test "${PATH_SEPARATOR+set}" != set; then
42
        { echo "#! /bin/sh"; echo "exit 0"; } > /tmp/conf$$.sh
45
        { echo "#! /bin/sh"; echo "exit 0"; } > $TMPFILE
43
        chmod +x /tmp/conf$$.sh
46
        chmod +x $TMPFILE
44
        if (PATH="/nonexistent;/tmp"; conf$$.sh) >/dev/null 2>&1; then
47
        if (PATH="/nonexistent;/tmp"; $TMPFILE) >/dev/null 2>&1; then
45
          PATH_SEPARATOR=';'
48
          PATH_SEPARATOR=';'
46
        else
49
        else
47
          PATH_SEPARATOR=:
50
          PATH_SEPARATOR=:
48
        fi
51
        fi
49
        rm -f /tmp/conf$$.sh
52
        rm -f $TMPFILE
50
      fi
53
      fi
51
      save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
54
      save_IFS="$IFS"; IFS="$PATH_SEPARATOR"
52
      for dir in $PATH; do
55
      for dir in $PATH; do

Return to bug 62724