diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2015-08-14 15:25:06 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-08-25 16:57:14 +0300 |
commit | 40b8891f3c59173b73ea2c7218fc8c5f7a93809e (patch) | |
tree | 8c877ec0c0f1669c7962b14d28e133b951b36cbf /scripts | |
parent | 06537738ea438c3e339fc269dedb4ed6c5e48f07 (diff) |
scripts/git_hash: change repo to CUSTOM_STR
other platforms should export CUSTOM_STR in their
platform/<target>/Makefile.am
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-and-tested-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/git_hash.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh index 48ae24e..6cfec2f 100755 --- a/scripts/git_hash.sh +++ b/scripts/git_hash.sh @@ -6,14 +6,14 @@ if [ -z ${1} ]; then fi ROOTDIR=${1} -repo=https://git.linaro.org/lng/odp.git +CUSTOM_STR=${CUSTOM_STR:-https://git.linaro.org/lng/odp.git} if [ -d ${ROOTDIR}/.git ]; then hash=$(git describe | tr -d "\n") if git diff-index --name-only HEAD &>/dev/null ; then dirty=-dirty fi - echo -n "'${repo}' (${hash}${dirty})">${ROOTDIR}/.scmversion + echo -n "'${CUSTOM_STR}' (${hash}${dirty})">${ROOTDIR}/.scmversion fi cat ${ROOTDIR}/.scmversion |