changeset 5350:bc679d3084c9

Portability tweak.
author Bruno Haible <bruno@clisp.org>
date Fri, 15 Oct 2004 15:46:41 +0000
parents 3644893488ed
children 7c565c8ecabc
files ChangeLog gnulib-tool
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,7 +6,8 @@
 	functions.
 	(func_import): New function, extracted from big case statement. Use
 	func_get_license, func_modules_transitive_closure,
-	func_modules_to_filelist. Initialize opt_lgpl.
+	func_modules_to_filelist. Initialize opt_lgpl. Don't use test -a, as
+	it's not portable.
 	(func_create_testdir): Use func_modules_transitive_closure,
 	func_modules_to_filelist.
 
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2004-10-15 15:43:58 $'
+cvsdatestamp='$Date: 2004-10-15 15:46:41 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -451,7 +451,7 @@
     test -n "$dry_run" && dry=echo
     $dry cp -p "$gnulib_dir/$f" "$destdir/$g"
     # Update license.
-    if test -z "$dry_run" -a -n "$lgpl" -a -n "$source"; then
+    if test -z "$dry_run" && test -n "$lgpl" && test -n "$source"; then
       perl -pi -e 's/GNU General/GNU Lesser General/g;' \
                -e 's/version 2([ ,])/version 2.1\1/g' \
                $destdir/$g