Codebase list ohcount / 85104d5a-b71d-4620-9315-33d4daf34104/main debian / orig-tar.sh
85104d5a-b71d-4620-9315-33d4daf34104/main

Tree @85104d5a-b71d-4620-9315-33d4daf34104/main (Download .tar.gz)

orig-tar.sh @85104d5a-b71d-4620-9315-33d4daf34104/mainraw · history · blame

#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=ohcount-$2
TAR=../ohcount_$2.orig.tar.gz

# clean up the upstream tarball
tar zxf $3 
# Remove vendor/ because it is including 
tar -c -z -X debian/orig-tar.exclude -f $TAR $DIR/
rm -rf $DIR

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
    . .svn/deb-layout
    mv $TAR $origDir
    echo "moved $TAR to $origDir"
fi