# HG changeset patch # User Simon Josefsson # Date 1114121405 0 # Node ID afd959c1af76eeeea489659a4405902f4e7525ca # Parent 09cfc6a21d7eeac6aa88800015192e7087ce8997 (Options): Add -s for --symlink/--symbolic. (func_ln_if_changed) Remove forcibly for no error message in case file does not exist. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-21 Oskar Liljeblad + + * 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 * gnulib-tool (Options): Make --symlink mean --symbolic. diff --git a/gnulib-tool b/gnulib-tool --- 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 ." } @@ -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 )