3 # When provided with a git repo, which has been used to produce a
4 # distribution tar.gz (with make dist) and the resultant tar-file,
5 # lists files which appear in one or the other only, to help check
6 # for missing EXTRA_DIST entries in Makefile.am files.
9 if ! MYTMP=$(mktemp -d -t $scriptname-XXXXXX)
13 echo >&2 "Cannot create temporary directory."
24 # clean up if we get stopped by Crtl-C or forced logout or normal exit
31 echo "tar-compare git-dir tar-gz-file"
36 tar xfzC "$2" $MYTMP/unpack
37 diff -r "$1" $MYTMP/unpack/* | grep "^Only" | sed \
38 -e '/: autom4te\.cache$/d' \
41 -e '/: \.gitattributes$/d' \
42 -e '/: \.gitignore$/d' \
43 -e '/: config\.log$/d' \
44 -e '/: config\.status$/d' \
45 -e '/: config\.h.*$/d' \
48 -e '/: packaging$/d' \
50 -e '/: README\.md$/d' \
51 -e '/: tmp-anchor-links$/d' \
52 -e '/: tmp-manproc$/d' \
53 -e '/: .*\.tar\.\(gz\|bz2\|xz\)$/d' \
57 -e '/: CMakeLists.txt/d' \
58 -e '/: .travis.yml/d' \
60 -e '/python.d: python-modules-installer\.sh\.in$/d' \
61 -e '/sbin: \(firehol\|fireqos\|link-balancer\)$/d' \
62 -e '/sbin: \(update-ipsets\|vnetbuild\|commands.sed\)$/d' > $MYTMP/out
65 test -s $MYTMP/out && exit 1