Debian Codegraph @

debian/script/import

raw symbols SCIP
1 #!/bin/bash
2 #
3 # import, script for importing new upstream tarball
4 #
5 if [ -z "${1}" ] ; then
6 echo "E:Missing tarball filename"
7 echo "I:Usage: ${0} upstreamtarball"
8 exit 1
9 fi
10 if [ -d .git -a -d debian ] ; then
11 # clean the current directory
12 find . -maxdepth 1 | grep -v -e ^.$ -e ^./.git$ -e ^./debian$ \
13 | xargs rm -rf
14 else
15 echo "E: You are not in the expected directory"
16 exit 1
17 fi
18 echo "I: Untar of ${1} in progress ..."
19 tar xf ${1} --strip-components=1
20 echo "I: Done."
21 # l l