botan/repack.sh

21 lines
311 B
Bash
Raw Normal View History

#! /bin/bash
name=Botan-1.10.17
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/rc6 \
${name}/src/block/rc5 \
${name}/src/pubkey/gost_3410
touch -m -r ${src} ${dst%.gz}
gzip ${dst%.gz}