Merge pull request #1789 from iguessthislldo/igtd/backport-1783
[ACE_TAO.git] / ACE / debian / cmp-installation.sh
blob91c3f6bfad9a06ecd6775d4cee415e49401ecb84
1 #!/bin/sh
3 # This script compares autoconf-based installation against regular builds
4 # provided files.
6 # This script should be run after `make install DESTDIR=debian/tmp' has been
7 # run on autoconf-based build.
10 set -e
12 P1=ACE_wrappers
13 P2=debian/tmp/usr/include
15 # Find files
16 # ff <from>
17 ff() {
18 find "$1" -name '*.h' -o -name '*.inl' -o -name '*.hpp' -o -name '*.ipp'
21 # Remove path with examples, tests and tutorial from STDIN
22 drop() {
23 grep -E -v '(examples|tests|tutorials)/'
26 # Removed unused/unshipped stuff
27 unused() {
28 grep -E -v '^/(ASNMP|TAO_IDL|ace/QoS|apps|contrib|utils)'
31 F1=`mktemp -t ace_regular.XXXXXXXXXX`
32 F2=`mktemp -t ace_autoconf.XXXXXXXXXX`
33 trap "rm $F1 $F2" 0
35 ff $P1 | sed -e "s@$P1@@" -e "s@/TAO@@" -e "s@/protocols@@" -e "s@^/orbsvcs@@" | drop | unused | sort >> $F1
36 ff $P2 | sed -e "s@$P2@@" | sort >> $F2
37 diff -u $F1 $F2