mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Store the `git-version-gen' patch.
* gnulib-local/build-aux/git-version-gen.diff: New file. * Makefile.am (EXTRA_DIST): Add it.
This commit is contained in:
parent
ad4eb036dc
commit
7e0ee59c60
2 changed files with 72 additions and 9 deletions
19
Makefile.am
19
Makefile.am
|
@ -42,15 +42,16 @@ SUBDIRS = \
|
||||||
libguileincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
|
libguileincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
|
||||||
libguileinclude_HEADERS = libguile.h
|
libguileinclude_HEADERS = libguile.h
|
||||||
|
|
||||||
EXTRA_DIST = LICENSE HACKING GUILE-VERSION \
|
EXTRA_DIST = LICENSE HACKING GUILE-VERSION \
|
||||||
m4/ChangeLog-2008 \
|
m4/ChangeLog-2008 \
|
||||||
m4/gnulib-cache.m4 \
|
m4/gnulib-cache.m4 \
|
||||||
ChangeLog-2008 \
|
ChangeLog-2008 \
|
||||||
.version \
|
.version \
|
||||||
gnulib-local/lib/localcharset.h.diff \
|
gnulib-local/lib/localcharset.h.diff \
|
||||||
gnulib-local/lib/localcharset.c.diff \
|
gnulib-local/lib/localcharset.c.diff \
|
||||||
gnulib-local/m4/clock_time.m4.diff \
|
gnulib-local/m4/clock_time.m4.diff \
|
||||||
gnulib-local/m4/canonicalize.m4.diff
|
gnulib-local/m4/canonicalize.m4.diff \
|
||||||
|
gnulib-local/build-aux/git-version-gen.diff
|
||||||
|
|
||||||
TESTS = check-guile
|
TESTS = check-guile
|
||||||
TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@
|
TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@
|
||||||
|
|
62
gnulib-local/build-aux/git-version-gen.diff
Normal file
62
gnulib-local/build-aux/git-version-gen.diff
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
This patch is being discussed
|
||||||
|
at <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00079.html>.
|
||||||
|
Remove when integrated in Gnulib.
|
||||||
|
|
||||||
|
--- a/build-aux/git-version-gen 2012-06-12 21:25:48.000000000 +0200
|
||||||
|
+++ b/build-aux/git-version-gen 2012-07-07 01:52:08.000000000 +0200
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Print a version string.
|
||||||
|
-scriptversion=2012-03-18.17; # UTC
|
||||||
|
+scriptversion=2012-07-06.14; # UTC
|
||||||
|
|
||||||
|
# Copyright (C) 2007-2012 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
@@ -85,20 +85,25 @@
|
||||||
|
|
||||||
|
Options:
|
||||||
|
|
||||||
|
- --prefix prefix of git tags (default 'v')
|
||||||
|
+ --prefix prefix of git tags to strip from version (default 'v')
|
||||||
|
+ --match pattern for git tags to match (default: '\$prefix*')
|
||||||
|
|
||||||
|
- --help display this help and exit
|
||||||
|
- --version output version information and exit
|
||||||
|
+ --help display this help and exit
|
||||||
|
+ --version output version information and exit
|
||||||
|
|
||||||
|
-Running without arguments will suffice in most cases."
|
||||||
|
+Running without arguments will suffice in most cases. If no --match
|
||||||
|
+argument is given, only match tags that begin with the --prefix."
|
||||||
|
|
||||||
|
prefix=v
|
||||||
|
+unset match
|
||||||
|
+unset tag_sed_script
|
||||||
|
|
||||||
|
while test $# -gt 0; do
|
||||||
|
case $1 in
|
||||||
|
--help) echo "$usage"; exit 0;;
|
||||||
|
--version) echo "$version"; exit 0;;
|
||||||
|
--prefix) shift; prefix="$1";;
|
||||||
|
+ --match) shift; match="$1";;
|
||||||
|
-*)
|
||||||
|
echo "$0: Unknown option '$1'." >&2
|
||||||
|
echo "$0: Try '--help' for more information." >&2
|
||||||
|
@@ -121,6 +126,7 @@
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
+match="${match:-$prefix*}"
|
||||||
|
tag_sed_script="${tag_sed_script:-s/x/x/}"
|
||||||
|
|
||||||
|
nl='
|
||||||
|
@@ -151,8 +157,7 @@
|
||||||
|
# directory, and "git describe" output looks sensible, use that to
|
||||||
|
# derive a version string.
|
||||||
|
elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
|
||||||
|
- && v=`git describe --abbrev=4 --match="$prefix*" HEAD 2>/dev/null \
|
||||||
|
- || git describe --abbrev=4 HEAD 2>/dev/null` \
|
||||||
|
+ && v=`git describe --abbrev=4 --match="$match" HEAD 2>/dev/null` \
|
||||||
|
&& v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \
|
||||||
|
&& case $v in
|
||||||
|
$prefix[0-9]*) ;;
|
Loading…
Add table
Add a link
Reference in a new issue