0.1.5: p2
[kbuild-mirror.git] / dist / debian / orig-tar.sh
blobc1c26fea6aac10981b48d0544d8d27eee10a0cc8
1 #!/bin/sh -e
3 SVNROOT=$1
4 VERSION=$2
5 REVISION=$3
7 DIR=kbuild-$REVISION
8 TAR=../kbuild_$VERSION.orig.tar.gz
10 svn co -r $REVISION $SVNROOT $DIR
11 tar -c -z --exclude '*/kBuild/bin*' --exclude '*/out/*' --exclude '*/.svn*' -f $TAR $DIR
12 rm -rf $DIR
14 # move to directory 'tarballs'
15 if [ -r .svn/deb-layout ]; then
16 . .svn/deb-layout
17 mv $TAR $origDir
18 echo "moved $TAR to $origDir"