Mercurial > hg > sonic-visualiser
comparison deploy/linux/debian-dependencies.sh @ 865:8215909b74d2 sv_v2.4_linux_deploy
Deploy fixes
author | Chris Cannam |
---|---|
date | Wed, 24 Sep 2014 12:39:28 +0100 |
parents | d47aa2977d7a |
children | c977df9da61e |
comparison
equal
deleted
inserted
replaced
864:d47aa2977d7a | 865:8215909b74d2 |
---|---|
26 for p in `cat $pfile`; do | 26 for p in `cat $pfile`; do |
27 echo Looking at $p 1>&2 | 27 echo Looking at $p 1>&2 |
28 apt-cache showpkg "$p" | grep '^ ' | grep ',' | awk -F, '{ print $1; }' | \ | 28 apt-cache showpkg "$p" | grep '^ ' | grep ',' | awk -F, '{ print $1; }' | \ |
29 while read d; do | 29 while read d; do |
30 if grep -q '^'$d'$' $pfile; then | 30 if grep -q '^'$d'$' $pfile; then |
31 echo $p 1>&2 | 31 echo $p |
32 fi | 32 fi |
33 done | 33 done |
34 done | sort | uniq > $rfile | 34 done | sort | uniq > $rfile |
35 | 35 |
36 echo "Packages that can be eliminated because other packages depend on them:" 1>&2 | 36 echo "Packages that can be eliminated because other packages depend on them:" 1>&2 |
37 cat $rfile 1>&2 | 37 cat $rfile 1>&2 |
38 echo 1>&2 | 38 echo 1>&2 |
39 | 39 |
40 cat $pfile $rfile | sort | uniq -u | sed 's/$/,/' | fmt -1000 | sed 's/^/Depends: /' | 40 cat $pfile $rfile | sort | uniq -u | sed 's/$/,/' | fmt -1000 | sed 's/^/Depends: /' | sed 's/,$/, libc6/' |
41 | 41 |
42 | 42 |