[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] gnulib-tool port to Solaris 8
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] gnulib-tool port to Solaris 8 |
Date: |
17 Sep 2003 11:40:11 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Joerg Schilling was having problems bootstrapping GNU tar from CVS on
Solaris 8. I installed the following portability patch to gnulib-tool
to fix the problems that I deduced from his email. One of the fixes
(for sed) is required for POSIX conformance and the other one (test
-h) is simple and increases portability (while retaining POSIX
conformance).
2003-09-17 Paul Eggert <address@hidden>
* 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.
Index: gnulib-tool
===================================================================
RCS file: /cvsroot/gnulib/gnulib/gnulib-tool,v
retrieving revision 1.12
retrieving revision 1.13
diff -p -u -r1.12 -r1.13
--- gnulib-tool 16 Sep 2003 14:53:35 -0000 1.12
+++ gnulib-tool 17 Sep 2003 18:30:23 -0000 1.13
@@ -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
- [Bug-gnulib] gnulib-tool port to Solaris 8,
Paul Eggert <=