aboutsummaryrefslogtreecommitdiffhomepage
path: root/version.sh
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-07-14 23:09:44 +0200
committerGravatar wm4 <wm4@nowhere>2015-07-14 23:11:06 +0200
commit739d345d6cf0ead2b25f03ca83123a081b506267 (patch)
treed87b7542a3910429c79f68eae81b68a543fef40f /version.sh
parente1ab9b905fa50c92d0fcee3a1e37f55109f98775 (diff)
build: don't make version.sh create version.h by default
You could actually run version.sh, and then the waf build system could accidentally pick up the generated (and most likely stale) version.h.
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/version.sh b/version.sh
index a9dfb69620..674c6a1633 100755
--- a/version.sh
+++ b/version.sh
@@ -3,6 +3,7 @@
export LC_ALL=C
version_h="version.h"
+print=yes
for ac_option do
ac_arg=$(echo $ac_option | cut -d '=' -f 2-)
@@ -12,13 +13,11 @@ for ac_option do
;;
--versionh=*)
version_h="$(pwd)/$ac_arg"
+ print=no
;;
--cwd=*)
cwd="$ac_arg"
;;
- --print)
- print=yes
- ;;
*)
echo "Unknown parameter: $ac_option" >&2
exit 1