Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up release builder scripts.

The version.h file is generated by the Makefile, we should
prefill the version_tag.h file.
  • Loading branch information...
commit 4205752bb0df2bc88978cddd27d4d8981352e733 1 parent d237e35
@steveicarus authored
Showing with 8 additions and 4 deletions.
  1. +4 −2 scripts/MAKE_RELEASE.sh
  2. +4 −2 scripts/MAKE_SNAPSHOT.sh
View
6 scripts/MAKE_RELEASE.sh
@@ -47,9 +47,11 @@ fi
echo "Exporting $tag to $destdir/$prefix..."
git archive --prefix="$prefix/" $tag | ( cd "$destdir" && tar xf - )
-versionh="$destdir/$prefix/version.h"
+versionh="$destdir/$prefix/version_tag.h"
echo "Create $versionh ..."
-echo "#define VERSION_TAG \"$tag\"" > $versionh
+echo "#ifndef VERSION_TAG" > $versionh
+echo "#define VERSION_TAG \"$tag\"" >> $versionh
+echo "#endif" >> $versionh
echo "Running autoconf.sh..."
( cd $destdir/$prefix && sh autoconf.sh )
View
6 scripts/MAKE_SNAPSHOT.sh
@@ -47,9 +47,11 @@ fi
echo "Exporting $tag to $destdir/$prefix..."
git archive --prefix="$prefix/" $tag | ( cd "$destdir" && tar xf - )
-versionh="$destdir/$prefix/version.h"
+versionh="$destdir/$prefix/version_tag.h"
echo "Create $versionh ..."
-echo "#define VERSION_TAG \"$tag\"" > $versionh
+echo "#ifndef VERSION_TAG" > $versionh
+echo "#define VERSION_TAG \"$tag\"" >> $versionh
+echo "#endif" >> $versionh
echo "Running autoconf.sh..."
( cd $destdir/$prefix && sh autoconf.sh )
Please sign in to comment.
Something went wrong with that request. Please try again.