OSSP CVS Repository

ossp - Difference in ossp-pkg/shtool/shtoolize.in versions 1.35 and 1.36
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/shtool/shtoolize.in 1.35 -> 1.36

--- shtoolize.in 2005/06/15 08:14:36     1.35
+++ shtoolize.in 2005/10/12 12:34:50     1.36
@@ -389,6 +389,31 @@
 ${overview}
 ##
 
+#   maximum Bourne-Shell compatibility
+if [ ".\$ZSH_VERSION" != . ] && (emulate sh) >/dev/null 2>&1; then
+    #   reconfigure zsh(1)
+    emulate sh
+    NULLCMD=:
+    alias -g '\${1+"\$@"}'='"\$@"'
+elif [ ".\$BASH_VERSION" != . ] && (set -o posix) >/dev/null 2>&1; then
+    #   reconfigure bash(1)
+    set -o posix
+fi
+
+#   maximum independence of NLS nuisances
+for var in \\
+    LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \\
+    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \\
+    LC_TELEPHONE LC_TIME
+do
+    if (set +x; test -z "`(eval \$var=C; export \$var) 2>&1`"); then
+        eval \$var=C; export \$var
+    else
+        unset \$var
+    fi
+done
+
+#   initial command line handling
 if [ \$# -eq 0 ]; then
     echo "\$0:Error: invalid command line" 1>&2
     echo "\$0:Hint:  run \\`\$0 -h' for usage" 1>&2

CVSTrac 2.0.1