diff options
| author | 2022-09-05 01:07:15 +0200 | |
|---|---|---|
| committer | 2022-09-05 01:07:15 +0200 | |
| commit | f5dca59b720f60c2340dd6dd9eada53ce6fdd06a (patch) | |
| tree | 7c5e976f6229416367647dd3299a58ffd88bd3e3 /git-version-gen | |
| parent | 8163aa935e9dcbc15c6c091da7fc42f017fc7ce9 (diff) | |
| download | libplist-f5dca59b720f60c2340dd6dd9eada53ce6fdd06a.tar.gz libplist-f5dca59b720f60c2340dd6dd9eada53ce6fdd06a.tar.bz2 | |
Allow using libplist as a submodule
Diffstat (limited to 'git-version-gen')
| -rwxr-xr-x | git-version-gen | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-version-gen b/git-version-gen index 3eb6a42..f6cb31c 100755 --- a/git-version-gen +++ b/git-version-gen | |||
| @@ -3,7 +3,7 @@ SRCDIR=`dirname $0` | |||
| 3 | if test -n "$1"; then | 3 | if test -n "$1"; then |
| 4 | VER=$1 | 4 | VER=$1 |
| 5 | else | 5 | else |
| 6 | if test -d "${SRCDIR}/.git" && test -x "`which git`" ; then | 6 | if test -r "${SRCDIR}/.git" && test -x "`which git`" ; then |
| 7 | git update-index -q --refresh | 7 | git update-index -q --refresh |
| 8 | if ! VER=`git describe --tags --dirty 2>/dev/null`; then | 8 | if ! VER=`git describe --tags --dirty 2>/dev/null`; then |
| 9 | COMMIT=`git rev-parse --short HEAD` | 9 | COMMIT=`git rev-parse --short HEAD` |
