From 7728c9447010e74709ef9f3cb6ddeaa731cc0465 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 14 Oct 2008 20:44:49 +0000 Subject: This is my initial commit of the scripts I used to make the 3.0 release files. The README contains some initial docs, plans and current status. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18812 a1c6a512-1295-4272-9138-f99709370657 --- tools/release/tarball.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 tools/release/tarball.sh (limited to 'tools/release/tarball.sh') diff --git a/tools/release/tarball.sh b/tools/release/tarball.sh new file mode 100755 index 0000000000..21335dd954 --- /dev/null +++ b/tools/release/tarball.sh @@ -0,0 +1,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 -- cgit v1.2.3