[Sound-open-firmware] [PATCH] build: fix version script to use correct version in tarball build
Liam Girdwood
liam.r.girdwood at linux.intel.com
Thu Jan 11 13:12:30 CET 2018
make sure the tarball build uses the correct version.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
version.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/version.sh b/version.sh
index 1f57c53..33b1451 100755
--- a/version.sh
+++ b/version.sh
@@ -11,7 +11,7 @@ else
fi
# create git version if we are a git repo
-if [ ! -d $DIR/.git ]; then
+if [ -d $DIR/.git ]; then
# version for make dist
git describe --abbrev=4 > $DIR/.version
git describe --abbrev=4 > $DIR/.tarball-version
@@ -19,7 +19,7 @@ if [ ! -d $DIR/.git ]; then
# git commit for IPC
echo "#define REEF_TAG \"`git log --pretty=format:\"%h\" -1 | cut -c1-5`\"" > $DIR/src/include/version.h
else
- echo "#define REEF_TAG 0" > $DIR/src/include/version.h
+ echo "#define REEF_TAG \"0\"" > $DIR/src/include/version.h
fi
# build counter
--
2.14.1
More information about the Sound-open-firmware
mailing list