botan/repack.sh
2014-05-10 14:29:27 +02:00

24 lines
768 B
Bash
Executable File

#! /bin/bash
version=1.10.8
name=Botan-${version}
suffix=.tbz
newsuffix=.stripped.tbz
compr=bzip2
trap '${tmpfile:+rm ${tmpfile}}' EXIT
tmpfile=$(mktemp)
${compr} -cd ${name}${suffix} > ${tmpfile}
tar --delete --file=${tmpfile} Botan-${version}/src/block/rc6
tar --delete --file=${tmpfile} Botan-${version}/src/block/rc5
tar --delete --file=${tmpfile} Botan-${version}/src/math/ec_gfp
tar --delete --file=${tmpfile} Botan-${version}/src/pubkey/ecc_key
tar --delete --file=${tmpfile} Botan-${version}/src/pubkey/ecdh
tar --delete --file=${tmpfile} Botan-${version}/src/pubkey/ecdsa
tar --delete --file=${tmpfile} Botan-${version}/src/pubkey/ec_group
tar --delete --file=${tmpfile} Botan-${version}/src/pubkey/gost_3410
${compr} -c ${tmpfile} > ${name}${newsuffix}