summaryrefslogtreecommitdiff
path: root/audio/lingot/mksrctarball.sh
blob: 9364d2bb84a0c6ff86f246f997eeee2d9d5a421d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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