FS#8961 - Anti-Aliased Fonts.
[kugel-rb/myfork.git] / tools / release / rbutiltarball.sh
blob37bbd25c68f9f5bd3dc6500b9eb3bf32b3100245
1 #!/bin/bash
3 # Create a tarball of rbutil from a tagged release
4 # Doess a full checkout, then shaves off everything unneeded.
6 if [ -z "$1" ]; then
7 printf "Usage: `basename $0` 1.2.2"
8 exit
9 else
10 version="$1"
13 svn checkout svn://svn.rockbox.org/rockbox/tags/rbutil_$version rbutil-$version
14 if [ ! $? ]; then
15 echo "Something went wrong with checking out"
16 exit 22
19 cd rbutil-$version
20 # Delete top-level dirs that aren't used
21 rm -rf bootloader firmware fonts icons uisimulator wps backdrops docs flash gdb manual utils
23 # Clean out tools and restore the bits that we need
24 rm -rf tools/*
25 svn update tools/{iriver.c,Makefile,mkboot.h,voicefont.c,VOICE_PAUSE.wav,wavtrim.h,iriver.h,mkboot.c,rbspeex,voicefont.h,wavtrim.c}
26 # Just in case
27 mkdir -p tools/rbspeex/build
29 # Clean out apps and restore apps/codecs/libspeex
30 rm -rf apps/*
31 svn update apps/codecs
32 rm -rf apps/codecs/*
33 svn update apps/codecs/libspeex
34 cd ..
36 tar cvvj --exclude-vcs -f rbutil-$version.tar.bz2 rbutil-$version
37 rm -rf rbutil-$version