/[pkg-kde]/scripts/check-shlibs
ViewVC logotype

Contents of /scripts/check-shlibs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 646 - (show annotations) (download)
Fri Mar 4 19:23:28 2005 UTC (8 years, 3 months ago) by dato-guest
File size: 899 byte(s)
Uhm, ensure symbols are sorted with LC_COLLATE=C. A fix for arts' shlibs
will follow.
1 #! /bin/sh
2
3 dh_testdir || exit 1
4
5 NM='nm --dynamic --defined-only --no-sort'
6 SOURCE=`awk '/^Source:/ {print $2}' debian/control`
7 VERSION=`dpkg-parsechangelog | grep -E '^Version:' | cut -f 2 -d ' '`
8 SHLIBS_SVN='svn://svn.debian.org/pkg-kde/branches/kde-3.4.0/shlibs'
9 WHERE=debian/shlibs-check
10
11 rm -rf $WHERE/$SOURCE
12 mkdir -p $WHERE/$SOURCE
13
14 if [ ! -d $WHERE/prev ]; then
15 echo >&2 "Getting previous shlibs from SVN..."
16 svn export -q $SHLIBS_SVN/$SOURCE $WHERE/prev
17 fi
18
19 for p in `/usr/lib/cdbs/list-packages`; do
20 cd debian/$p
21 D="../../$WHERE/$SOURCE/$p"
22
23 find . -name '*.so.[0-9]' | while read lib; do
24 L="$D/`dirname $lib`"
25 test -d $L || mkdir -p $L 2>/dev/null
26
27 echo $VERSION >$D/version
28
29 $NM $lib | awk '{print $3}' | env LC_COLLATE=C sort >$L/`basename $lib`
30 done
31 cd ../..
32 done
33
34 if diff -NrU0 $WHERE/{prev,$SOURCE} -x version; then
35 echo >&2 "No differences!"
36 fi

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5