summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2013-05-28 16:38:26 +0200
committerAkim Demaille <akim@lrde.epita.fr>2013-05-28 16:40:44 +0200
commitf9340b27b20e8780a60974248a642ca12d5bd243 (patch)
tree3468de81fdc43c288380572d95a4d769bc15775b /bootstrap
parentf249e803f032cc5e2bdce431589067595fdfd4ef (diff)
downloadbison-f9340b27b20e8780a60974248a642ca12d5bd243.tar.gz
gnulib: update
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap19
1 files changed, 10 insertions, 9 deletions
diff --git a/bootstrap b/bootstrap
index 96f1e762..0cbea66e 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
# Print a version string.
-scriptversion=2013-03-08.16; # UTC
+scriptversion=2013-05-08.20; # UTC
# Bootstrap this package from checked-out sources.
@@ -140,20 +140,21 @@ po_download_command_format2=\
"wget --mirror -nd -q -np -A.po -P '%s' \
http://translationproject.org/latest/%s/"
+# Prefer a non-empty tarname (4th argument of AC_INIT if given), else
+# fall back to the package name (1st argument with munging)
extract_package_name='
- /^AC_INIT(/{
- /.*,.*,.*, */{
- s///
- s/[][]//g
- s/)$//
+ /^AC_INIT(\[*/{
+ s///
+ /^[^,]*,[^,]*,[^,]*,[ []*\([^][ ,)]\)/{
+ s//\1/
+ s/[],)].*//
p
q
}
- s/AC_INIT(\[*//
- s/]*,.*//
+ s/[],)].*//
s/^GNU //
y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
- s/[^A-Za-z0-9_]/-/g
+ s/[^abcdefghijklmnopqrstuvwxyz0123456789_]/-/g
p
}
'