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