Debian Codegraph @

debian/script/import

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