diff options
| author | David M. Syzdek <david@syzdek.net> | 2021-05-05 12:10:06 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2021-05-05 12:10:06 -0800 |
| commit | a1288ee8e3e78a6eb32510efd27f3f9189e9a9f8 (patch) | |
| tree | 22d7af13b829c15e737e3ee15e774e0bbc0e4c97 | |
| parent | 0395143ed9dda71362bb7cc30834d5a78780e5fc (diff) | |
| download | bindletools-a1288ee8e3e78a6eb32510efd27f3f9189e9a9f8.tar.gz bindletools-a1288ee8e3e78a6eb32510efd27f3f9189e9a9f8.tar.bz2 bindletools-a1288ee8e3e78a6eb32510efd27f3f9189e9a9f8.tar.xz bindletools-a1288ee8e3e78a6eb32510efd27f3f9189e9a9f8.zip | |
git-package-version: forcing .git to be at head of source directory
| -rwxr-xr-x | build-aux/git-package-version.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build-aux/git-package-version.sh b/build-aux/git-package-version.sh index 816970d..51decea 100755 --- a/build-aux/git-package-version.sh +++ b/build-aux/git-package-version.sh | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # | 2 | # |
| 3 | # Bindle Binaries Tools | 3 | # Bindle Binaries Tools |
| 4 | # Copyright (c) 2012, Bindle Binaries | 4 | # Copyright (c) 2012, 2021 Bindle Binaries |
| 5 | # | 5 | # |
| 6 | # @BINDLE_BINARIES_BSD_LICENSE_START@ | 6 | # @BINDLE_BINARIES_BSD_LICENSE_START@ |
| 7 | # | 7 | # |
| @@ -59,7 +59,11 @@ if test "x${SRCDIR}" == "xauto";then | |||
| 59 | GIT_TOP_DIR=`git rev-parse --show-toplevel 2> /dev/null` | 59 | GIT_TOP_DIR=`git rev-parse --show-toplevel 2> /dev/null` |
| 60 | SRCDIR="${GIT_TOP_DIR}" | 60 | SRCDIR="${GIT_TOP_DIR}" |
| 61 | else | 61 | else |
| 62 | GIT_TOP_DIR=`( cd ${SRCDIR} 2> /dev/null && git rev-parse --show-toplevel 2> /dev/null; )` | 62 | if test ! -d "${SRCDIR}";then |
| 63 | echo "${SCRIPT}: specified source directory does not exist." 1>&2; | ||
| 64 | exit 1; | ||
| 65 | fi | ||
| 66 | GIT_TOP_DIR=`( cd ${SRCDIR} 2> /dev/null && pwd; )` | ||
| 63 | if test "x${GIT_TOP_DIR}" == "x";then | 67 | if test "x${GIT_TOP_DIR}" == "x";then |
| 64 | GIT_TOP_DIR=${SRCDIR} | 68 | GIT_TOP_DIR=${SRCDIR} |
| 65 | fi | 69 | fi |
