update make-tar.sh to use the current VERSION from Cargo.toml

This commit is contained in:
Mike Dilger 2023-02-15 15:19:12 +13:00
parent 3ce38ed9ba
commit 653d3ba9d1

View File

@ -1,4 +1,7 @@
#!/bin/sh
VERSION=$(grep '^version' ../../Cargo.toml | awk -F\" '{print $2}')
echo $VERSION;
cd ../../..
tar -cv --exclude=gossip/.git --exclude=gossip/target --exclude=gossip/packaging -f - gossip | bzip2 -c > gossip/packaging/tar/gossip-0.3.93-unstable.tar.bz2
tar -cv --exclude=gossip/.git --exclude=gossip/target --exclude=gossip/packaging -f - gossip | bzip2 -c > gossip/packaging/tar/gossip-${VERSION}.tar.bz2