aboutsummaryrefslogtreecommitdiff
path: root/audio/calf/git2targz.sh
blob: 35ec01dae50319414f5e28d4d7a886647d224052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

PRGNAM=calf
URL=https://github.com/calf-studio-gear/$PRGNAM.git
DATE=$( date +%Y%m%d )

rm -rf $PRGNAM
git clone $URL $PRGNAM
cd $PRGNAM
REV=$( git rev-parse --short @ )
rm -rf .git*
cd -

VERSION=$DATE.$REV
rm -rf $PRGNAM-$VERSION
mv $PRGNAM $PRGNAM-$VERSION
tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION