Pandora port: Fix rockbox share directory path (it has to end on /rockbox)
[maemo-rb.git] / tools / release / tarball.sh
blob21335dd95425a28ad439ef07dffed7d6908296ca
1 #!/bin/sh
3 version="3.0"
5 srcdir=.
6 tempdir=rockbox-temp
7 outfile=rockbox-$version.7z
9 # remove previous leftovers
10 rm -rf $tempdir
12 cd $srcdir
14 # create the dir name based on revision number
15 rbdir=$tempdir/rockbox-$version
17 # create new temp dir
18 mkdir -p $rbdir
20 # copy everything to the temp dir
21 svn ls -R | xargs -Imoo cp --parents moo $rbdir 2>/dev/null
23 cd $tempdir
25 rm -f $outfile
27 # 7zip the entire directory
28 7zr a $outfile rockbox*
30 # world readable please
31 chmod a+r $outfile
33 # remove temporary files
34 rm -rf $tempdir