All pastes #2060703 Raw Edit

Miscellany

public text v1 · immutable
#2060703 ·published 2011-05-15 20:25 UTC
rendered paste body
#!/bin/sh

RELEASEP="0.24.1"

echo "Creating release directory"
mkdir release > /dev/null
pushd mythtv > /dev/null
echo "Archiving MythTV v$RELEASEP"
git archive --format=tar --prefix mythtv-$RELEASEP/ -o ../release/mythtv-$RELEASEP.tar v$RELEASEP mythtv
echo "Archiving MythPlugins v$RELEASEP"
git archive --format=tar --prefix mythplugins-$RELEASEP/ -o ../release/mythplugins-$RELEASEP.tar v$RELEASEP mythplugins
popd > /dev/null
pushd release > /dev/null
echo "Compressing release files"
bzip2 -9 mythtv-$RELEASEP.tar
bzip2 -9 mythplugins-$RELEASEP.tar
echo "Computing md5 sums"
md5sum mythtv-$RELEASEP.tar.bz2      > mythtv-$RELEASEP.md5sum
md5sum mythplugins-$RELEASEP.tar.bz2 > mythplugins-$RELEASEP.md5sum
echo "Done, created these output files in release directory:"
ls -lh myth{tv,plugins}-$RELEASEP.{tar.bz2,md5sum}
popd > /dev/null