From: Karl Berry Date: Mon, 11 Jun 2012 00:05:27 +0000 (-0700) Subject: implement --replace for ftp-upload protocol v1.2 X-Git-Tag: v0.1~625 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=0023eb3641f5e717c19386946fe0f0cf34c2d991;p=gnulib.git implement --replace for ftp-upload protocol v1.2 --- diff --git a/ChangeLog b/ChangeLog index 1a5c1e812..a3758273f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-06-10 Karl Berry + + * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2. + 2012-06-10 Bruce Korb parse-duration: Relicense under LGPLv2+. diff --git a/build-aux/gnupload b/build-aux/gnupload index b71ddfda8..bedf15958 100755 --- a/build-aux/gnupload +++ b/build-aux/gnupload @@ -1,7 +1,7 @@ #!/bin/sh # Sign files and upload them. -scriptversion=2012-01-15.15; # UTC +scriptversion=2012-06-11.00; # UTC # Copyright (C) 2004-2012 Free Software Foundation, Inc. # @@ -28,6 +28,7 @@ GPG='gpg --batch --no-tty' conffile=.gnuploadrc to= dry_run=false +replace= symlink_files= delete_files= delete_symlinks= @@ -53,8 +54,10 @@ Options: --to DEST specify one destination for FILES (multiple --to options are allowed) --user NAME sign with key NAME + --replace allow replacements of existing files --symlink-regex[=EXPR] use sed script EXPR to compute symbolic link names --dry-run do nothing, show what would have been done + (including the constructed directive file) --version output version information and exit If --symlink-regex is given without EXPR, then the link target name @@ -146,6 +149,9 @@ while test -n "$1"; do --delete) collect_var=delete_files ;; + --replace) + replace="replace: true" + ;; --rmsymlink) collect_var=delete_symlinks ;; @@ -270,7 +276,7 @@ filename: $3$stmt" fi cat >${2}.directive<