summaryrefslogtreecommitdiff
path: root/audio/lingot/mksrctarball.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-13 00:57:28 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:57:28 +0200
commit9459f312ee81c7e29f067400b0b64a64fbab1862 (patch)
tree02694e6017b4ef7b321d246845ed3b17f77b288f /audio/lingot/mksrctarball.sh
parent1c9bebcb82f343919e429f7a973ef5ff21c4e345 (diff)
downloadslackbuilds-9459f312ee81c7e29f067400b0b64a64fbab1862.tar.gz
audio/lingot: Added to 13.0 repository
Diffstat (limited to 'audio/lingot/mksrctarball.sh')
-rw-r--r--audio/lingot/mksrctarball.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/lingot/mksrctarball.sh b/audio/lingot/mksrctarball.sh
new file mode 100644
index 0000000000..9364d2bb84
--- /dev/null
+++ b/audio/lingot/mksrctarball.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# Create a source tarball from the lingot CVS repository.
+# The result will be /tmp/lingot-$VERSION.tar.xz
+
+REV=${1:-20091225}
+
+TMP=${TMP:-/tmp}
+WORKDIR=$TMP/tarball.$$.$RANDOM
+
+set -e
+
+rm -rf $WORKDIR
+mkdir -p $WORKDIR
+cd $WORKDIR
+
+cvs \
+ -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/lingot \
+ export \
+ -D "$REV" \
+ lingot
+
+mv lingot lingot-$REV
+tar cvfJ $TMP/lingot-$REV.tar.xz lingot-$REV
+md5sum $TMP/lingot-$REV.tar.xz
+cd $TMP
+rm -rf $WORKDIR