summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg/ffmpeg-mksrctarball.sh
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ffmpeg/ffmpeg-mksrctarball.sh')
-rw-r--r--multimedia/ffmpeg/ffmpeg-mksrctarball.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/ffmpeg/ffmpeg-mksrctarball.sh b/multimedia/ffmpeg/ffmpeg-mksrctarball.sh
new file mode 100644
index 0000000000..f003e5d325
--- /dev/null
+++ b/multimedia/ffmpeg/ffmpeg-mksrctarball.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+# This script helps you to download and compress the
+# sourcecode for ffmpeg from its svn server.
+
+set -e
+
+PRGNAM=ffmpeg
+VERSION=$(date +"%Y%m%d")
+SVNSERVER=svn://svn.mplayerhq.hu
+
+echo "--> Downloading sourcecode from $SVNSERVER"
+svn checkout $SVNSERVER/$PRGNAM/trunk $PRGNAM-$VERSION 2>&1 | tee svn-$PRGNAM-$VERSION.log
+
+echo "--> Making the sourcecode tarball: $PRGNAM-$VERSION.tar.bz2 "
+tar -c $PRGNAM-$VERSION/ | bzip2 > $PRGNAM-$VERSION.tar.bz2
+
+echo "--> Erasing the sourcecode directory: $PRGNAM-$VERSION/"
+rm -rf $PRGNAM-$VERSION/
+
+echo "--> Sourcecode tarball for $PRGNAM: $PRGNAM-$VERSION.tar.bz2"