Lines Matching full:version
2 # Print a version string.
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
20 # This script is derived from GIT-VERSION-GEN from GIT: http://git.or.cz/.
24 # - from a non-git-repo directory containing a .tarball-version file, which
25 # presumes this script is invoked like "./git-version-gen .tarball-version".
27 # In order to use intra-version strings in your project, you will need two
28 # separate generated version string files:
30 # .tarball-version - present only in a distribution tarball, and not in
32 # the last time autoconf was run, and used by git-version-gen. Must not
33 # be present in either $(srcdir) or $(builddir) for git-version-gen to
35 # but must be present in a tarball when there is no version control system.
40 # .version - present in a checked-out repository and in a distribution
42 # want to depend on config.h but do want to track version changes.
44 # files to pick up a version string change; and leave it stale to
48 # /.version to .gitignore, so that you don't accidentally commit it.
49 # .tarball-version is never generated in a VC'd directory, so needn't
52 # Use the following line in your configure.ac, so that $(VERSION) will
54 # since configure.ac no longer includes a version string, Makefile rules
55 # should not depend on configure.ac for version updates).
58 # m4_esyscmd([build-aux/git-version-gen .tarball-version]),
61 # Then use the following lines in your Makefile.am, so that .version
62 # will be present for dependencies, and so that .version and
63 # .tarball-version will exist in distribution tarballs.
65 # EXTRA_DIST = $(top_srcdir)/.version
66 # BUILT_SOURCES = $(top_srcdir)/.version
67 # $(top_srcdir)/.version:
68 # echo $(VERSION) > $@-t && mv $@-t $@
70 # echo $(VERSION) > $(distdir)/.tarball-version
75 version="git-version-gen $scriptversion
83 Usage: $me [OPTION]... \$srcdir/.tarball-version [TAG-NORMALIZATION-SED-SCRIPT]
84 Print a version string.
89 --fallback VERSION
90 fallback version to use if \"git --version\" fails
93 --version output version information and exit
103 --version) echo "$version"; exit 0;;
137 # First see if there is a tarball-only version file.
156 # derive a version string.
167 # tag or the previous older version that did not?
175 # result is the same as if we were using the newer version
187 # Change the first '-' to a '.', so version-comparing tools work properly.
191 elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
199 # Test whether to append the "-dirty" suffix only if the version
201 # or if it came from .tarball-version.
203 # Don't declare a version "dirty" merely because a time stamp has changed.