Debian Codegraph @

dist/package.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 dist="$( cd "$( dirnamescip-shell system . . dirname. "${BASH_SOURCE[0]}" )" && pwdscip-shell system . . pwd. )"
4 version=$(grepscip-shell system . . grep. "APP_VERSION.*$" ${dist}/../src/src.pro| sedscip-shell system . . sed. 's/^.*APP_VERSION.*\([0-9]\.[0-9]\.[0-9]\).*$/\1/')
5 target=${dist}"/../../knowthelist-"${version}
6
7 if [scip-shell system . . `[`. -d ${target} ]; then rmscip-shell system . . rm. -rf ${target} ;fi
8 mkdirscip-shell system . . mkdir. ${target}
9 cpscip-shell system . . cp. -R ${dist}/../../knowthelist/* ${target}
10 rmscip-shell system . . rm. ${target}/knowthelist.pro.user
11 rmscip-shell system . . rm. ${target}/src/Makefile
12 rmscip-shell system . . rm. ${target}/Makefile
13 rmscip-shell system . . rm. ${target}/locale/*.qm
14 cd ${target}
15
16 if [scip-shell system . . `[`. ! -f ../knowthelist_${version}.orig.tar.gz ]; then
17 tarscip-shell system . . tar. -czf ../knowthelist_${version}.orig.tar.gz ../knowthelist-${version}/
18 else
19 dpkg-sourcescip-shell system . . dpkg-source. --commit
20 fi
21 dpkg-buildpackagescip-shell system . . dpkg-buildpackage. -k${GPGKEY} -sa
22
23 # Suse / Fedora spec
24 sedscip-shell system . . sed. -i 's/Version: 1/Version: '${version}'/g' ${target}/dist/knowthelist.spec
25 mvscip-shell system . . mv. ${target}/dist/knowthelist.spec ${dist}/../../knowthelist_${version}.spec
26
27 #process=$(objdump -p "$1" |grep NEEDED | cut -d ' ' -f 18)
28
29 resultsscip-shell shell shell-project 0.0.0 results().(){
30 for package in $process
31 do
32 dpkgscip-shell system . . dpkg. -S $package |
33 cutscip-shell system . . cut. -d: -f1 |
34 sortscip-shell system . . sort. -u
35 done
36 }
37