summaryrefslogtreecommitdiff
path: root/build-aux/bootstrap
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-04-11 14:20:08 +0200
committerBruno Haible <bruno@clisp.org>2021-04-11 14:20:08 +0200
commitfd6f32a849f159d6063869ebeb7f29e9c7b0736f (patch)
tree54bde4b43a8fae4fe57002c16520df03f75b70f8 /build-aux/bootstrap
parent60863e8024d7a7c6ffe4b03d33a87bdb44ab5770 (diff)
downloadgnulib-fd6f32a849f159d6063869ebeb7f29e9c7b0736f.tar.gz
bootstrap: Implement --version option according to GCS.
* build-aux/bootstrap (copyright_year, copyright): New variables. (--version): New option processing.
Diffstat (limited to 'build-aux/bootstrap')
-rwxr-xr-xbuild-aux/bootstrap14
1 files changed, 13 insertions, 1 deletions
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index c17a36f1fe..7336598500 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
# Print a version string.
-scriptversion=2021-01-10.00; # UTC
+scriptversion=2021-04-11.09; # UTC
# Bootstrap this package from checked-out sources.
@@ -115,6 +115,12 @@ Running without arguments will suffice in most cases.
EOF
}
+copyright_year=`echo "$scriptversion" | sed -e 's/[^0-9].*//'`
+copyright="Copyright (C) ${copyright_year} Free Software Foundation, Inc.
+License GPLv3+: GNU GPL version 3 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."
+
# warnf_ FORMAT-STRING ARG1...
warnf_ ()
{
@@ -337,6 +343,12 @@ do
--help)
usage
exit;;
+ --version)
+ set -e
+ echo "bootstrap $scriptversion"
+ echo "$copyright"
+ exit 0
+ ;;
--gnulib-srcdir=*)
GNULIB_SRCDIR=${option#--gnulib-srcdir=};;
--skip-po)