libmemcached/strip-hsieh.sh
Petr Šabata 0fc56ad4a3 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/libmemcached#fcafe9e73a2cad15c4f95318fa9f48083eb5b525
2020-10-15 16:33:52 +02:00

25 lines
512 B
Bash
Executable File

#!/bin/bash -ex
ver=$1
tdir=`mktemp -d tmpXXXXXX`
pushd $tdir
tar -xzf ../libmemcached-$ver.tar.gz
pushd libmemcached-$ver
rm libhashkit/hsieh.cc
grep -r 'azillionmonkeys' . && exit 1
popd
rm -f ../libmemcached-$ver-exhsieh.tar.gz
tar --no-xattrs -czf ../libmemcached-$ver-exhsieh.tar.gz libmemcached-$ver
tar -tzf ../libmemcached-$ver.tar.gz | sort > manifest-before
tar -tzf ../libmemcached-$ver-exhsieh.tar.gz | sort > manifest-after
diff -u manifest-before manifest-after || true
popd
rm -rf $tdir