summaryrefslogtreecommitdiffstats
path: root/fs/squashfs/decompressor.h
AgeCommit message (Expand)Author
2020-06-02squashfs: migrate from ll_rw_block usage to BIOPhilippe Liard
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 35Thomas Gleixner
2017-09-08squashfs: Add zstd supportSean Purcell
2014-11-27Squashfs: Add LZ4 compression configuration optionPhillip Lougher
2013-11-20Squashfs: Generalise paging handling in the decompressorsPhillip Lougher
2013-11-20Squashfs: Refactor decompressor interface and codePhillip Lougher
2011-07-22Squashfs: Make ZLIB compression support optionalPhillip Lougher
2011-05-26Squashfs: update email addressPhillip Lougher
2011-02-28Squashfs: extend decompressor framework to handle compression optionsPhillip Lougher
2011-01-13Squashfs: simplify CONFIG_SQUASHFS_LZO handlingPhillip Lougher
2011-01-13Squashfs: Add XZ compression configuration optionPhillip Lougher
2010-01-20Squashfs: add a decompressor frameworkPhillip Lougher
href='#n28'>28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
#!/bin/sh

# When provided with a git repo, which has been used to produce a
# distribution tar.gz (with make dist) and the resultant tar-file,
# lists files which appear in one or the other only, to help check
# for missing EXTRA_DIST entries in Makefile.am files.

scriptname=tar-compare
if ! MYTMP=$(mktemp -d -t $scriptname-XXXXXX)
then
            echo >&2
            echo >&2
            echo >&2 "Cannot create temporary directory."
            echo >&2
            exit 1
fi

cleanup() {
  status=$?
  rm -rf "${MYTMP}"
  exit $status
}

# clean up if we get stopped by Crtl-C or forced logout or normal exit
trap cleanup INT
trap cleanup HUP
trap cleanup 0

if [ $# -ne 2 ]
then
  echo "tar-compare git-dir tar-gz-file"
  exit 1
fi

mkdir $MYTMP/unpack
tar xfzC "$2" $MYTMP/unpack
diff -r "$1" $MYTMP/unpack/* | grep "^Only" | sed \
	-e '/: autom4te\.cache$/d' \
	-e '/: \.deps$/d' \
	-e '/: \.git$/d' \
	-e '/: \.gitattributes$/d' \
	-e '/: \.gitignore$/d' \
	-e '/: config\.log$/d' \
	-e '/: config\.status$/d' \
	-e '/: config\.h.*$/d' \
	-e '/: Makefile$/d' \
	-e '/: hooks$/d' \
	-e '/: packaging$/d' \
	-e '/: stamp-h1$/d' \
	-e '/: README\.md$/d' \
	-e '/: tmp-anchor-links$/d' \
	-e '/: tmp-manproc$/d' \
	-e '/: .*\.tar\.\(gz\|bz2\|xz\)$/d' \
	-e '/: unittest$/d' \
	-e '/: iprange$/d' \
	-e '/: .*\.o$/d' \
	-e '/: CMakeLists.txt/d' \
	-e '/: .travis.yml/d' \
	-e '/: profile$/d' \
	-e '/sbin: \(firehol\|fireqos\|link-balancer\)$/d' \
	-e '/sbin: \(update-ipsets\|vnetbuild\|commands.sed\)$/d' > $MYTMP/out

cat $MYTMP/out
test -s $MYTMP/out && exit 1
exit 0