summaryrefslogtreecommitdiffstats
path: root/tools/release/tarball.sh
blob: 21335dd95425a28ad439ef07dffed7d6908296ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

version="3.0"

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