summaryrefslogtreecommitdiff
path: root/build-aux/git-version-gen
Commit message (Collapse)AuthorAgeFilesLines
* maint: run 'make update-copyright'Simon Josefsson2023-01-011-1/+1
|
* git-version-gen: Doc fix.Simon Josefsson2022-07-091-2/+2
| | | | | | | | Reported by Reuben Thomas <rrt@sc3d.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2022-04/msg00012.html>. * build-aux/git-version-gen (usage): Replace incorrect text with bug report instructions.
* maint: Update copyright noticesPaul Eggert2022-01-271-1/+1
| | | | | | | | | | * build-aux/announce-gen, build-aux/declared.sh: * build-aux/git-version-gen, build-aux/gitlog-to-changelog: * build-aux/gnu-web-doc-update, build-aux/gnupload: * build-aux/increment-serial, build-aux/libtool-next-version: * build-aux/useless-if-before-free: Update some copyright notices by hand, that were not updated automatically.
* license: fix GPLv3 texts to use a comma instead of semicolon.Bernhard Voelker2022-01-051-1/+1
| | | | | | | | | See: https://www.gnu.org/licenses/gpl-3.0.html#howto Run: $ git grep -l 'Foundation; either version 3' \ | xargs sed -i '/Foundation; either version 3/ s/n; e/n, e/' * All files using GPLv3: Adjust via the above command.
* maint: run 'make update-copyright'Paul Eggert2022-01-011-1/+1
|
* maint: break out '&& mv $@-t $@'Paul Eggert2021-12-241-3/+4
| | | | | | | * build-aux/git-version-gen, config/argz.mk, modules/configmake: * modules/posix_spawnp-tests, modules/snippet/link-warning: Break out '&& mv $@-t $@' to a separate line in the Make recipe, as this makes things a bit easier to debug.
* git-version-gen: Implement --version option according to GCS.Bruno Haible2021-04-111-4/+4
| | | | | * build-aux/git-version-gen (version): State the license. Use wording from GCS.
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* git-version-gen: update scriptversionDmitry V. Levin2020-06-031-1/+1
| | | | | | | | | | scriptversion in git-version-gen should be kept up-to-date because this script is used by projects that update it from gnulib when its scriptversion changes. * build-aux/git-version-gen (scriptversion): Update. Fixes: 8f41f1918 ("git-version-gen: Allow 'snapshot' as .tarball-version contents.")
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* git-version-gen: Allow 'snapshot' as .tarball-version contents.Bruno Haible2019-10-131-3/+1
| | | | | * build-aux/git-version-gen: Don't map non-numeric .tarball-version contents to the empty string.
* git-version-gen: fix --version copyright yearPaul Eggert2019-03-051-1/+2
| | | | | | * build-aux/git-version-gen, build-aux/move-if-change (version): --version output copyright year is now taken from script year, so that it no longer needs to be updated by hand.
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* maint: write-file-hooks -> before-save-hookPaul Eggert2018-03-071-2/+2
| | | | | | | | | | | | | | | write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and it's time to use the recommended replacement. Problem reported by Glenn Morris in: https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html * build-aux/announce-gen, build-aux/bootstrap: * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh: * build-aux/git-version-gen, build-aux/gitlog-to-changelog: * build-aux/gnu-web-doc-update, build-aux/gnupload: * build-aux/move-if-change, build-aux/prefix-gnulib-mk: * build-aux/update-copyright, build-aux/useless-if-before-free: * build-aux/vc-list-files: Update hook usage for files where Gnulib is the canonical source.
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* all: Replace many more http URLs by https URLs. Update stale URLs.Bruno Haible2017-09-141-1/+1
| | | | | * users.txt: Remove mention of 'newts'. * lib/localename.c: Update comment about LANG_SOTHO.
* all: prefer https: URLsPaul Eggert2017-09-131-2/+2
|
* git-version-gen: port to Solaris 10Paul Eggert2017-08-201-2/+3
| | | | | | | Problem reported by Dagobert Michelsen in: http://lists.gnu.org/archive/html/grep-devel/2017-08/msg00002.html * build-aux/git-version-gen (v_from_git): Use expr instead of shell substitution.
* git-version-gen: another fix for tags with "-"Paul Eggert2017-08-061-4/+4
| | | | | | * build-aux/git-version-gen: Improve fix for tags containing "-". Suggested by Markus Armbruster in: http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00034.html
* git-version-gen: port better to older GitPaul Eggert2017-08-061-4/+4
| | | | Work even if the hash contains more than 4 digits.
* git-version-gen: Fix for tags containing '-'Markus Armbruster2017-08-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Really old versions of git-describe (before v1.5.0, Feb 2007) don't have the number of commits in their long format output, i.e. where modern 'git describe --abbrev=4 --match="v*"' prints "v0.1-1494-g124b9", they print "v0.1-1494-g124b9". git-version-gen recognizes both patterns, and normalizes the old format to the new one. Unfortunately, this normalization code gets confused when the tag contains '-'. Reproducer: $ git-tag -m test v0.2-rc1 $ build-aux/git-version-gen .tarball-version; echo build-aux/git-version-gen: WARNING: git rev-list failed UNKNOWN We take exact tag "v0.2-rc1" for the old format, extract the presumed tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count commits since tha tag. Fails, because tag "v0.2" does not exist. * git-version-gen: We could perhaps drop support for versions from more than a decade ago. But tightening the pattern match is easy enough, so do that. Still breaks when you use version tags ending in something matching -g????, but you arguably get what you deserve then.
* maint: time stamp -> timestampPaul Eggert2017-01-091-2/+2
| | | | Use the spelling "timestamp", as that is what POSIX uses.
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* git-version-gen: avoid undefined shiftPaul Eggert2016-05-081-3/+3
| | | | | | | | Problem reported by Mosè Giordano in: http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html * build-aux/git-version-gen: Avoid undefined behavior if invoked with --prefix or --fallback but without a later argument. While we're at it, omit unnecessary quotes.
* Port Universal Time settings to strict POSIXPaul Eggert2016-01-121-2/+2
| | | | | | | | | | | | * build-aux/announce-gen, build-aux/bootstrap: * build-aux/do-release-commit-and-tag, build-aux/git-version-gen: * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update: * build-aux/gnupload, build-aux/mkinstalldirs: * build-aux/move-if-change, build-aux/prefix-gnulib-mk: * build-aux/update-copyright, build-aux/useless-if-before-free: * build-aux/vc-list-files, tests/test-strftime.c: Use TZ="UTC0", not TZ="UTC". Either works on GNU platforms, but POSIX says the behavior of TZ="UTC" is undefined.
* version-etc: new yearPaul Eggert2016-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* git-version-gen: revert "detect untagged revisions"Mats Erik Andersson2015-04-141-6/+2
| | | | | | | | Revert commit bedd7833 as it breaks `make dist` in Inetutils at least, due to the interdependencies with top/GNUMakefile, which depend on the tag prefixes. This results in `make dist` inducing a new call to autoconf where a simple tar-ball build would be expected.
* git-version-gen: detect untagged revisionsMats Erik Andersson2015-04-141-2/+6
| | | | | | | * build-aux/git-version-gen: If fallback string is empty, but git is available, use "git describe --always" to extract a revision, and prefix it with "g". This is much better than responding "UNKNOWN" and it applies to shallow clones!
* version-etc: new yearPaul Eggert2014-12-311-1/+1
| | | | | | * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
* git-version-gen: do not print new line charactersKO Myung-Hun2014-12-021-2/+2
| | | | | | | | | On platforms with CRLF endings (such as OS/2), use of 'echo' may leave behind an unwanted CR. * build-aux/git-version-gen: Use printf instead of echo and tr. Signed-off-by: Eric Blake <eblake@redhat.com>
* git-version-gen: improve option descriptionsAlfred M. Szmidt2014-06-201-3/+4
| | | | | * build-aux/git-version-gen: Mention that --prefix and --fallback have a mandatory argument.
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: update all copyright year number rangesEric Blake2013-01-011-1/+1
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* git-version-gen: avoid test -z portability glitchEric Blake2012-12-311-8/+8
| | | | | | | | | | | | | | | Autoconf warns that there are some broken shells where 'test -z "$x"' gives 0 exit status if $x is ')'. Since some of our strings come from command-line arguments, and since git-version-gen is run on end-user machines where sh might be broken, we should be robust to abuse. Some of the instances replaced here are provably safe, and could not confuse even broken 'test', but it is easier to replace all instances of test -[nz]. * build-aux/git-version-gen: Prefer portable test spelling, since git-version-gen is run on more than just developer machines. Signed-off-by: Eric Blake <eblake@redhat.com>
* git-version-gen: add --fallback option to use if git is not presentPeter Rosin2012-12-311-2/+7
| | | | | | | | | | | | | | When building in a git checkout, but from a system lacking git, it is useful to fall back to the version determined when the git checkout was last used from a system sporting git. * build-aux/git-version-gen: Add support for the new option --fallback, which comes into play when there is no $tarball_version_file and git is not working. (scriptversion): Update. Copyright-paperwork-exempt: yes Signed-off-by: Peter Rosin <peda@lysator.liu.se>
* git-version-gen: don't let "prefix" envvar cause troubleAndreas Oberritter2012-03-181-2/+3
| | | | | | * build-aux/git-version-gen (prefix): Initialize properly, so as not to use a value specified via the environment. Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
* 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.