abc2bc
#!/bin/bash
abc2bc
VERSION=`sed -rn 's/^Version:\s*([0-9.]+)/\1/p' aqute-bnd.spec`
abc2bc
wget https://github.com/bndtools/bnd/archive/$VERSION.REL.tar.gz
abc2bc
gunzip $VERSION.REL.tar.gz
abc2bc
tar tf $VERSION.REL.tar | grep -E '\.(.ar|exe|tar\.(gz|bz2|xz)|zip)$' | xargs tar --delete --file $VERSION.REL.tar
abc2bc
gzip $VERSION.REL.tar