New gnulib-tool option --more-symlinks.
authorBruno Haible <bruno@clisp.org>
Sat, 14 Jul 2007 01:42:13 +0000 (01:42 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 14 Jul 2007 01:42:13 +0000 (01:42 +0000)
ChangeLog
gnulib-tool

index d7047a6099504be32ec79b76c993f93d91606fac..dfacc1fec28c18600da2f15ea12a78bbc1a886e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-07-13  Bruno Haible  <bruno@clisp.org>
+
+       New gnulib-tool option --more-symlinks.
+       * gnulib-tool (func_usage): Document --more-symlinks.
+       (do_copyrights): New variable.
+       Recognize option --more-symlinks.
+       (func_import): Don't add a copyright notice transform to
+       sed_transform_lib_file if do_copyrights is empty.
+
 2007-07-13  Bruno Haible  <bruno@clisp.org>
 
        * lib/vasnprintf.c (decimal_point_char): Define also if
index c9029ca0b29e9c93276632de1e14304a83499b2b..35ff7c42212f113077f34ae6e8d331d15f4642ad 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2007-07-13 01:17:00 $'
+cvsdatestamp='$Date: 2007-07-14 01:42:14 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 nl='
@@ -167,6 +167,8 @@ Options for --import and --update:
   -s, --symbolic, --symlink Make symbolic links instead of copying files.
       --local-symlink       Make symbolic links instead of copying files, only
                             for files from the local override directory.
+  -S, --more-symlinks       Make symbolic links instead of copying files, and
+                            don't replace copyright notices.
 
 Report bugs to <bug-gnulib@gnu.org>."
 }
@@ -578,8 +580,10 @@ fi
 # - autoconf_minversion  minimum supported autoconf version
 # - do_changelog    false if --no-changelog was given, : otherwise
 # - doit            : if actions shall be executed, false if only to be printed
-# - symbolic        true if --symlink was given, blank otherwise
+# - symbolic        true if --symlink or --more-symlinks was given, blank
+#                   otherwise
 # - lsymbolic       true if --local-symlink was given, blank otherwise
+# - do_copyrights   blank if --more-symlinks was given, true otherwise
 {
   mode=
   destdir=
@@ -601,6 +605,7 @@ fi
   doit=:
   symbolic=
   lsymbolic=
+  do_copyrights=true
 
   supplied_opts="$@"
 
@@ -767,6 +772,10 @@ fi
       --local-symlink | --local-symlin | --local-symli | --local-syml | --local-sym | --local-sy | --local-s )
         lsymbolic=true
         shift ;;
+      -S | --more-symlinks | --more-symlink | --more-symlin | --more-symli | --more-syml | --more-sym | --more-sy | --more-s | --more- | --more | --mor | --mo )
+        symbolic=true
+        do_copyrights=
+        shift ;;
       --help | --hel | --he | --h )
         func_usage
         func_exit $? ;;
@@ -1751,6 +1760,8 @@ func_emit_initmacro_done ()
 # - symbolic        true if files should be symlinked, copied otherwise
 # - lsymbolic       true if files from local_gnulib_dir should be symlinked,
 #                   copied otherwise
+# - do_copyrights   true if copyright notices in files should be replaced,
+#                   blank otherwise
 func_import ()
 {
   # Get the cached settings.
@@ -1958,12 +1969,14 @@ func_import ()
       break
     fi
   done
-  if test -n "$lgpl"; then
-    # Update license.
-    sed_transform_lib_file=$sed_transform_lib_file'
-      s/GNU General/GNU Lesser General/g
-      s/version 2\([ ,]\)/version 2.1\1/g
-    '
+  if test -n "$do_copyrights"; then
+    if test -n "$lgpl"; then
+      # Update license.
+      sed_transform_lib_file=$sed_transform_lib_file'
+        s/GNU General/GNU Lesser General/g
+        s/version 2\([ ,]\)/version 2.1\1/g
+      '
+    fi
   fi
 
   # Determine final file list.