changeset 5805:afd959c1af76

(Options): Add -s for --symlink/--symbolic. (func_ln_if_changed) Remove forcibly for no error message in case file does not exist.
author Simon Josefsson <simon@josefsson.org>
date Thu, 21 Apr 2005 22:10:05 +0000
parents 09cfc6a21d7e
children 011f74e77fb8
files ChangeLog gnulib-tool
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -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 @@
       --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 @@
   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 @@
       --dry-run )
         dry_run=true
         shift ;;
-      --symbolic | --symlink )
+      -s | --symbolic | --symlink )
         symbolic=true
         shift ;;
       --help | --hel | --he | --h )