From c8e7ecd12fa5c0bc2aa6f32ad0ad415561933c97 Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <ossi@kde.org>
Date: Sat, 13 Jun 2009 14:30:05 +0200
Subject: [PATCH 2/5] fix bashisms
---
maint/version.sh | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/maint/version.sh b/maint/version.sh
index 933c14e..944a38e 100755
a
|
b
|
src_top_dir= |
21 | 21 | |
22 | 22 | VERSION_FILE=${src_top_dir}/version.h |
23 | 23 | |
24 | | pushd ${src_top_dir} &>/dev/null |
25 | | git_head=$(git rev-parse --verify HEAD 2>/dev/null) |
| 24 | git_head=$(git --git-dir "${src_top_dir}" rev-parse --verify HEAD 2>/dev/null) |
26 | 25 | [ -z "${git_head}" ] && exit |
27 | 26 | |
28 | | new_version="$(git describe 2>/dev/null)" |
| 27 | new_version="$(git --git-dir "${src_top_dir}" describe 2>/dev/null)" |
29 | 28 | [ -z "${new_version}" ] && exit |
30 | | popd &>/dev/null |
31 | 29 | |
32 | 30 | |
33 | 31 | saved_version= |