Port gnulib-tool to Solaris 8.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Sep 2003 18:30:23 +0000 (18:30 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Sep 2003 18:30:23 +0000 (18:30 +0000)
ChangeLog
gnulib-tool

index 69dfd7d513109b8524a0442668b0d9c56a26c68f..a27e06f182113fc81dcdcca8c8ac6fb4fcaae9c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-09-17  Paul Eggert  <eggert@twinsun.com>
+
+       * gnulib-tool: Use "test -h", not "test -L", for portability
+       to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
+       (tags_regexp): Remove, since \| doesn't conform to POSIX.
+       (sed_extract_prog): Issue s commands one-by-one, rather than
+       using \| in one s command.
+
 2003-09-16  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (func_create_testdir): Warn about duplicated
index 2cb4e0281820803b65a9b0a7769dab3c3252049f..3a87d2fe13f74ef5bd3901c827bc67002b237bf9 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2003-09-16 14:53:35 $'
+cvsdatestamp='$Date: 2003-09-17 18:30:23 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -197,7 +197,7 @@ case "$0" in
      fi
      ;;
 esac
-while test -L "$self_abspathname"; do
+while test -h "$self_abspathname"; do
   # Resolve symbolic link.
   sedexpr1='s, -> ,#%%#,'
   sedexpr2='s,^.*#%%#\(.*\)$,\1,p'
@@ -231,11 +231,16 @@ func_verify_module ()
   fi
 }
 
-tags_regexp='\(Description\|Files\|Depends-on\|configure\.ac\|Makefile\.am\|Include\|Maintainer\)'
 sed_extract_prog=':[   ]*$/ {
   :a
     n
-    s/^'"$tags_regexp"':[      ]*$//
+    s/^Description:[   ]*$//
+    s/^Files:[         ]*$//
+    s/^Depends-on:[    ]*$//
+    s/^configure\.ac:[         ]*$//
+    s/^Makefile\.am:[  ]*$//
+    s/^Include:[       ]*$//
+    s/^Maintainer:[    ]*$//
     tb
     p
     ba