forked from len0rd/rockbox
A script to create a source tarball of rbutil. Does a complete checkout and removes everything that isn't needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21571 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
16e339d087
commit
05a4e67101
1 changed files with 37 additions and 0 deletions
37
tools/release/rbutiltarball.sh
Executable file
37
tools/release/rbutiltarball.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Create a tarball of rbutil from a tagged release
|
||||
# Doess a full checkout, then shaves off everything unneeded.
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
printf "Usage: `basename $0` 1.2.2"
|
||||
exit
|
||||
else
|
||||
version="$1"
|
||||
fi
|
||||
|
||||
svn checkout svn://svn.rockbox.org/rockbox/tags/rbutil_$version rbutil-$version
|
||||
if [ ! $? ]; then
|
||||
echo "Something went wrong with checking out"
|
||||
exit 22
|
||||
fi
|
||||
|
||||
cd rbutil-$version
|
||||
# Delete top-level dirs that aren't used
|
||||
rm -rf bootloader firmware fonts icons uisimulator wps backdrops docs flash gdb manual utils
|
||||
|
||||
# Clean out tools and restore the bits that we need
|
||||
rm -rf tools/*
|
||||
svn update tools/{iriver.c,Makefile,mkboot.h,voicefont.c,VOICE_PAUSE.wav,wavtrim.h,iriver.h,mkboot.c,rbspeex,voicefont.h,wavtrim.c}
|
||||
# Just in case
|
||||
mkdir -p tools/rbspeex/build
|
||||
|
||||
# Clean out apps and restore apps/codecs/libspeex
|
||||
rm -rf apps/*
|
||||
svn update apps/codecs
|
||||
rm -rf apps/codecs/*
|
||||
svn update apps/codecs/libspeex
|
||||
cd ..
|
||||
|
||||
tar cvvj --exclude-vcs -f rbutil-$version.tar.bz2 rbutil-$version
|
||||
rm -rf rbutil-$version
|
Loading…
Add table
Add a link
Reference in a new issue