botan/repack.sh

24 lines
464 B
Bash
Executable File

#! /bin/bash
name=Botan-1.8.15
src=${name}.tgz
dst=${name}.stripped.tar.gz
rm -f ${dst} ${dst%.gz}
cp -av ${src} ${dst}
gzip -d ${dst}
tar --delete --file=${dst%.gz} \
${name}/src/block/idea \
${name}/src/block/rc6 \
${name}/src/block/rc5 \
${name}/src/math/gfpmath \
${name}/src/pubkey/ec_dompar \
${name}/src/pubkey/ecc_key \
${name}/src/pubkey/ecdsa \
${name}/src/pubkey/eckaeg
touch -m -r ${src} ${dst%.gz}
gzip ${dst%.gz}