~rexbron/ubuntu-dev-tools/python-ppaput

« back to all changes in this revision

Viewing changes to check-symbols

  • Committer: Kees Cook
  • Date: 2008-01-21 17:45:16 UTC
  • Revision ID: kees@outflux.net-20080121174516-ekic0oor6hwc17ej
  * what-patch: change default operation back to quiet mode -- script is used
    in automated tools, so default behavior is best to leave unchanged.
  * check-symbols: check for binary list very carefully.
  * dch-repeat: add Hardy to distro list.
  * mk-sbuild-lv: use -r instead of -f for possible debootstrap symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# This script is used to get a diff of the exported symbols of all .so files in
7
7
# every binary package of package $1.
8
8
 
9
 
PACKAGES="`apt-cache showsrc $1 | grep ^Binary | sed 's/Binary\:\ //g;s/\,//g' | sort -u`"
 
9
DISTRO=$(lsb_release -c -s)
 
10
VERSION=$(apt-cache madison "$1" | grep -- "$DISTRO"'/.*Sources$' | awk '{print $3}')
 
11
PACKAGES=$(apt-cache showsrc "$1" | grep-dctrl -s Binary -F Version "$VERSION" | sed 's/Binary\:\ //g;s/\,//g' | sort -u)
10
12
DEBLINE=""
11
13
DEBUG=False
12
14
 
21
23
    DEBDIR="$2";
22
24
fi
23
25
 
 
26
sudo apt-get install $PACKAGES
 
27
 
24
28
for pack in $PACKAGES;
25
29
do
26
30
    for lib in `dpkg -L $pack | grep -E "\.so$" | sort -u`;