summaryrefslogtreecommitdiff
path: root/build-aux/gnupload
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-04-11 14:25:56 +0200
committerBruno Haible <bruno@clisp.org>2021-04-11 14:25:56 +0200
commit8bd125ff4b6e2f34a754bf1adcf4c75a7630cfef (patch)
tree73afc6152247b4c7ed0bbca9463e0a4786bcc5f8 /build-aux/gnupload
parent38cd01d2d16cdae8794d3cc2a4a70054651b799d (diff)
downloadgnulib-8bd125ff4b6e2f34a754bf1adcf4c75a7630cfef.tar.gz
gnupload: Implement --version option according to GCS.
* build-aux/gnupload (copyright_year, copyright): New variables. (--version): Print also a short copyright and license notice.
Diffstat (limited to 'build-aux/gnupload')
-rwxr-xr-xbuild-aux/gnupload11
1 files changed, 9 insertions, 2 deletions
diff --git a/build-aux/gnupload b/build-aux/gnupload
index 90e7c82288..e7822aed7e 100755
--- a/build-aux/gnupload
+++ b/build-aux/gnupload
@@ -1,7 +1,7 @@
#!/bin/sh
# Sign files and upload them.
-scriptversion=2018-05-19.18; # UTC
+scriptversion=2021-04-11.09; # UTC
# Copyright (C) 2004-2021 Free Software Foundation, Inc.
#
@@ -145,6 +145,12 @@ the build-aux/ directory of the gnulib package
Send patches and bug reports to <bug-gnulib@gnu.org>."
+copyright_year=`echo "$scriptversion" | sed -e 's/[^0-9].*//'`
+copyright="Copyright (C) ${copyright_year} Free Software Foundation, Inc.
+License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl.html>.
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law."
+
# Read local configuration file
if test -r "$conffile"; then
echo "$0: Reading configuration file $conffile"
@@ -209,7 +215,8 @@ while test -n "$1"; do
;;
--version)
echo "gnupload $scriptversion"
- exit $?
+ echo "$copyright"
+ exit 0
;;
--)
shift