Skip to content

Commit

Permalink
Fix release script to create the VERSION file as appropriate
Browse files Browse the repository at this point in the history
The VERSION file is used to create the --version string for non-git builds
(like the tarball)
  • Loading branch information
Beirdo committed Apr 13, 2012
1 parent 7119d7c commit 6184029
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions releasescript/release.sh
Expand Up @@ -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

Expand Down

0 comments on commit 6184029

Please sign in to comment.