Debian Codegraph @

debian/build_qnapi.sh

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2
3 # When in clone of Git repository (see Vcs-Git in debian/control), one may use
4 # this script for building QNapi packages
5
6 set -e
7 set -x
8
9 n=$(exprscip-shell system . . expr. $(headscip-shell system . . head. -1 debian/changelog | awkscip-shell system . . awk. '{printf $2}' | /usr/bin/wcscip-shell filesystem . . `/usr/bin/wc`. -c) - 1)
10 version=$(headscip-shell system . . head. -1 debian/changelog | awkscip-shell system . . awk. '{printf $2}' | cutscip-shell system . . cut. -b2-$n)
11 upstream_version=$(echoscip-shell system . . echo. $version | awkscip-shell system . . awk. -F "-" '{printf $1}')
12 debian_revision=$(echoscip-shell system . . echo. $version | awkscip-shell system . . awk. -F "-" '{printf $2}')
13
14 gitscip-shell system . . git. clean -d -f -x
15 gitscip-shell system . . git. reset --hard
16 gitscip-shell system . . git. co upstream
17 gitscip-shell system . . git. br -D ${upstream_version}/master || truescip-shell system . . true.
18 gitscip-shell system . . git. co -b ${upstream_version}/master upstream
19 gitscip-shell system . . git. merge -m "Merging ${upstream_version}/debian" debian
20
21 debuildscip-shell system . . debuild. -us -uc -i.git $@
22