Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix release script to create the VERSION file as appropriate

The VERSION file is used to create the --version string for non-git builds
(like the tarball)
  • Loading branch information...
commit 6184029ae0eadc6997427a9d823655dd8f7b4de5 1 parent 7119d7c
@Beirdo Beirdo authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 releasescript/release.sh
View
11 releasescript/release.sh
@@ -35,8 +35,19 @@ tar --append -f mythplugins-$RELEASEP.tar mythplugins-$RELEASEP
rm -rf mythplugins-$RELEASEP mythweb-$RELEASEP.tar
popd > /dev/null
+# The VERSION file is used to fill in --version for non-git builds
+echo "Fixing VERSION file"
pushd release > /dev/null
+tar xf mythtv-$RELEASEP.tar
+pushd mythtv-$RELEASEP > /dev/null
+echo SOURCE_VERSION='"v'$RELEASEP'"' > VERSION
+popd > /dev/null
+tar cf mythtv-$RELEASEP.tar mythtv-$RELEASEP
+rm -rf mythtv-$RELEASEP
+popd > /dev/null
+
echo "Compressing release files"
+pushd release > /dev/null
bzip2 -9 mythtv-$RELEASEP.tar
bzip2 -9 mythplugins-$RELEASEP.tar
Please sign in to comment.
Something went wrong with that request. Please try again.