summaryrefslogtreecommitdiff
path: root/build-aux/git-version-gen
Commit message (Collapse)AuthorAgeFilesLines
* Use ', not `, for quoting output.Paul Eggert2012-01-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * build-aux/announce-gen (usage, sizes, print_news_deltas) (print_changelog_deltas, get_tool_versions, main program): * build-aux/git-version-gen: * build-aux/gitlog-to-changelog (usage, parse_amend_file): * build-aux/move-if-change (help): * build-aux/useless-if-before-free (usage, main program): * check-module (parse_module_file, usage) (find_included_lib_files, check_module): * lib/argmatch.c (main) [TEST]: * lib/argp-help.c (_help): * lib/getopt1.c (main) [TEST]: * lib/git-merge-changelog.c (usage): * lib/xstrtol-error.c (xstrtol_error): * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): * m4/argz.m4 (gl_FUNC_ARGZ): * m4/bison.m4 (gl_BISON): * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): * m4/fpending.m4 (gl_PREREQ_FPENDING): * m4/gc-random.m4 (gl_GC_RANDOM): * m4/intl.m4 (gt_CHECK_DECL): * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT) (AC_TYPE_UNSIGNED_LONG_LONG_INT): * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE): * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): * tests/test-dirname.c (main): * tests/test-getpass.c (main): * tests/test-iconvme.c (main): * tests/test-parse-datetime.c (LOG): * tests/test-xstrtoimax.sh: * tests/test-xstrtol.sh: * tests/test-xstrtoll.sh: * tests/test-xstrtoumax.sh: * tests/unigbrk/test-uc-is-grapheme-break.c (main): * top/GNUmakefile (abort-due-to-no-makefile): Quote 'like this', not `like this', as per the recent change to the GNU coding standards.
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* Fix for last commit.Simon Josefsson2011-11-131-1/+1
|
* git-version-gen: Add --prefix.Simon Josefsson2011-11-131-4/+8
| | | | | * build-aux/git-version-gen: Add --prefix to configure the tag match string.
* git-version: Improve command line handling.Simon Josefsson2011-11-131-9/+49
| | | | * build-aux/git-version-gen: Add --help and --version.
* git-version-gen: correct the advice in a commentJim Meyering2011-08-111-3/+5
| | | | | * build-aux/git-version-gen: Correct comment. Don't recommend to list .tarball-version in .gitignore.
* git-version-gen: document that EXTRA_DIST must include .versionIain Nicol2011-08-011-3/+4
| | | | | | * build-aux/git-version-gen: In the how-to-use comment, document that EXTRA_DIST must include .version. Otherwise, "make distcheck" will fail when run from an unpacked distribution tarball.
* git-version-gen: skip "-dirty" check when appropriateJim Meyering2011-02-191-12/+19
| | | | | | | | * build-aux/git-version-gen: Don't run any git commands when the version string comes from .tarball-version. Prior to this, we would run git update-index --refresh even from a just-unpacked tarball directory, and that could affect a .git/ directory in a parent of the build directory. Reported by Mike Frysinger.
* avoid an unnecessary sub-shellBruce Korb2011-01-041-2/+2
|
* git-version-gen: use (...) rather than sh -c '...'Ben Pfaff2011-01-031-2/+2
| | | | | * build-aux/git-version-gen: Rather than hard-coding a shell's name with "sh -c '...'", just use "(...)". Less syntax is better, too.
* git-version-gen: convert leading TABs to spacesJim Meyering2011-01-031-26/+26
| | | | * build-aux/git-version-gen: Expand leading TABs.
* git-version-gen: handle failed "git rev-list"Jim Meyering2011-01-031-2/+6
| | | | | | | * build-aux/git-version-gen: Rather than leaking a "fatal" error from git and proceeding as if it had succeeded but printed no SHA1 checksums, suppress the diagnostic and handle the failure. Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
* git-version-gen: include command name in one more diagnosticJim Meyering2011-01-031-3/+3
| | | | | | | | * build-aux/git-version-gen: When the required .tarball-version file was missing or unreadable, you might see the diagnostic from "cat", but no trace of the name of the invoking script. Now, you still see the diagnostic from cat, but also get one from "git-version-gen: ". Inspired by a patch from Bruce Korb.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* git-version-gen: do require git-VC'd files in cwdJim Meyering2010-10-141-4/+5
| | | | | | | | | * build-aux/git-version-gen: Reject a git version string if there are no commits associated with the current directory. This avoids an unlikely false-positive (unrelated dir whose parent repository also contains a tag matching v*), as pointed out by Giuseppe Scrivano in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
* git-version-gen: don't require that .git/ be in the current dirJim Meyering2010-10-131-2/+4
| | | | | | | * build-aux/git-version-gen: Adjust this script so that it works when run from any working directory beneath the top-level .git/- containing directory. Inspired by a patch from Giusseppe Scrivano, http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
* git-version-gen: init shell var to avoid env var influenceThien-Thi Nguyen2010-06-141-1/+4
| | | | | | * build-aux/git-version-gen (v): Init shell var to empty. Signed-off-by: Eric Blake <eblake@redhat.com>
* git-version-gen: take a sed script to transform the git tagLudovic Courtès2010-05-281-3/+7
| | | | | | | * build-aux/git-version-gen (tag_sed_script): New variable. Use it to transform the output of "git describe" to the canonical form. * top/GNUmakefile (_curr-ver): Pass $(git-version-gen-tag-sed-script) as a second argument to `git-version-gen'.
* git-version-gen: aesthetic tweakJim Meyering2010-04-261-3/+2
| | | | | * build-aux/git-version-gen: Use "$nl" rather than a literal, so that the command remains on a single line.
* git-version-gen: allow use on EBCDIC hostsEric Blake2010-04-261-2/+3
| | | | | | | | * build-aux/git-version-gen (dirty): Use literal rather than tying ourselves to ascii. Reported by Steve Goetze. Signed-off-by: Eric Blake <eblake@redhat.com>
* git-version-gen: use "git update-index..." rather than "git status"Andreas Gruenbacher2010-04-121-1/+1
| | | | | | * build-aux/git-version-gen: Use git update-index --refresh, not "git status". With some versions of git, "git status" would fail to update the index and result in an unwarranted "-dirty" suffix.
* bootstrap, git-version-gen: use timestampEric Blake2010-02-241-2/+3
| | | | | | | | | | Timestamps are useful, particularly for files copied into other packages, to see how long since a file has forked. * build-aux/git-version-gen (scriptversion): Force UTC. * build-aux/bootstrap (scriptversion): New variable. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: normalize copyright noticesJim Meyering2010-01-271-1/+1
| | | | | | | | Normalize some copyright comments: change the two spaces before "Free Software..." to one: git grep -l -E '[0-9]{4} *Free Software' \ | xargs perl -pi -e 's/ +(Free Software)/ $1/'
* Fix copyright statement.Simon Josefsson2010-01-271-2/+2
|
* Fix copyright header in build-aux scripts.Ralf Wildenhues2009-09-101-8/+6
| | | | | | | | | * build-aux/git-version-gen: Fix copyright header to match GPLv3 recommendation. * build-aux/ncftpput-ftp: Likewise. * build-aux/update-copyright: Likewise. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Use 'git describe --match' if present (added in git 1.5.5).Eric Blake2008-04-081-2/+3
| | | | | | | * build-aux/git-version-gen: Limit result to tags that match 'v*' if possible. Signed-off-by: Eric Blake <ebb9@byu.net>
* Ensure sane .version contents.Eric Blake2008-04-031-2/+44
| | | | | | | | * top/GNUmakefile (_dummy): Also delete .version when rebuilding version string. * build-aux/git-version-gen: Improve documentation. Signed-off-by: Eric Blake <ebb9@byu.net>
* * build-aux/git-version-gen: Adjust a comment and the Usage string.Jim Meyering2008-03-021-3/+3
| | | | Signed-off-by: Jim Meyering <meyering@redhat.com>
* Enable use of older two part flavor 'git describe'.Bob Proulx2008-02-211-0/+17
| | | | | | * build-aux/git-version-gen: If using the older two part flavor of git version then recreate the third part now present in the newer three part flavor of git describe.
* * build-aux/git-version-gen: Use "git status", not "git-status".Jim Meyering2008-02-081-6/+6
|
* git-version-gen: sync from coreutils.Jim Meyering2007-11-051-9/+18
| | | | | | | | | * build-aux/git-version-gen: Add comments. Change the first '-' to '.' in the snapshot version string, e.g., 6.9-377-08144 -> 6.9.377-08144 Remove first parameter. Don't declare a version "-dirty" merely because a time stamp has changed.
* * build-aux/git-version-gen: New file, from coreutils. For details, seeJim Meyering2007-09-021-0/+83
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506