Debian Codegraph @

examples/rebuild/getlist

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 DIST=$1
4
5 BUILD_ARCH=$(dpkg-architecturescip-shell system . . dpkg-architecture. -qDEB_BUILD_ARCH)
6 MIRROR=http://ftp.at.debian.org
7
8 if [scip-shell system . . `[`. -z $DIST ]; then
9 echoscip-shell system . . echo. "No distribution given."
10 exit 1
11 fi
12
13 wget -q ${MIRROR}/debian/dists/$DIST/main/source/Sources.gz -O Sources.main.gz
14 wget -q ${MIRROR}/debian/dists/$DIST/contrib/source/Sources.gz -O Sources.contrib.gz
15 zcatscip-shell system . . zcat. Sources.main.gz Sources.contrib.gz > Sources
16
17 grepscip-shell system . . grep. -E "^Package|^Architecture|^$" Sources | pastescip-shell system . . paste. -s -d "=" | sedscip-shell system . . sed. "s/==/\n/g" | sedscip-shell system . . sed. "s/=/ /g" | cutscip-shell system . . cut. -d " " -f 2,4- > list.$DIST
18 grepscip-shell system . . grep. -E " all| any| $BUILD_ARCH" list.$DIST | cutscip-shell system . . cut. -d " " -f 1 > list.$DIST.$BUILD_ARCH
19
20 rmscip-shell system . . rm. -f Sources.main.gz Sources.contrib.gz
21