(Options): Add -s for --symlink/--symbolic.
authorSimon Josefsson <simon@josefsson.org>
Thu, 21 Apr 2005 22:10:05 +0000 (22:10 +0000)
committerSimon Josefsson <simon@josefsson.org>
Thu, 21 Apr 2005 22:10:05 +0000 (22:10 +0000)
(func_ln_if_changed) Remove forcibly for no error message
in case file does not exist.

ChangeLog
gnulib-tool

index d8e8a4afac24db600894c23eebe0f5680ef76d98..e8f9ffd72e551c0a70f2cc9b073d50b05d0457d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
+
+       * gnulib-tool (Options): Add -s for --symlink/--symbolic.
+       (func_ln_if_changed) Remove forcibly for no error message
+       in case file does not exist.
+
 2005-04-19  Simon Josefsson  <jas@extundo.com>
 
        * gnulib-tool (Options): Make --symlink mean --symbolic.
index 945b0034d53418c6319106238bc20cd910039fa5..1acf074e449c6e0e67845313227e5e9a4dd15c10 100755 (executable)
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2005-04-19 07:52:49 $'
+cvsdatestamp='$Date: 2005-04-21 22:10:05 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -95,7 +95,7 @@ Options:
       --libtool             Use libtool rules, for --import.
       --no-changelog        don't update or create ChangeLog files
       --dry-run             For --import, only print what would have been done.
-      --symbolic, --symlink Make symbolic links instead of copying files.
+  -s, --symbolic, --symlink Make symbolic links instead of copying files.
 
 Report bugs to <bug-gnulib@gnu.org>."
 }
@@ -168,7 +168,7 @@ func_ln_if_changed ()
   if test -L "$2" -a "$1" = "`readlink "$2"`"; then
     :
   else
-    $dry rm "$2"
+    $dry rm -f "$2"
     $dry ln -s "$1" "$2"
   fi
 }
@@ -289,7 +289,7 @@ func_ln_if_changed ()
       --dry-run )
         dry_run=true
         shift ;;
-      --symbolic | --symlink )
+      -s | --symbolic | --symlink )
         symbolic=true
         shift ;;
       --help | --hel | --he | --h )