rockbox/tools/release/tarball.sh
Daniel Stenberg beefca9c74 ready for 3.1
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_1@19569 a1c6a512-1295-4272-9138-f99709370657
2008-12-23 21:34:28 +00:00

34 lines
523 B
Bash
Executable file

#!/bin/sh
version="3.1"
srcdir=.
tempdir=rockbox-temp
outfile=rockbox-$version.7z
# remove previous leftovers
rm -rf $tempdir
cd $srcdir
# create the dir name based on revision number
rbdir=$tempdir/rockbox-$version
# create new temp dir
mkdir -p $rbdir
# copy everything to the temp dir
svn ls -R | xargs -Imoo cp --parents moo $rbdir 2>/dev/null
cd $tempdir
rm -f $outfile
# 7zip the entire directory
7zr a $outfile rockbox*
# world readable please
chmod a+r $outfile
# remove temporary files
rm -rf $tempdir