Add make_orig script

This downloads and creates the .orig tar gz for debian packaging
ogrepository-fixes
Vadim vtroshchinskiy 2025-01-10 12:56:28 +01:00
parent cbbea5ff47
commit 7c83f24b31
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
git clone https://github.com/vojtechtrefny/pyblkid opengnsys-pyblkid
cd opengnsys-pyblkid
version=`python3 ./setup.py --version`
cd ..
if [ -d "opengnsys-pyblkid-${version}" ] ; then
echo "Directory opengnsys-pyblkid-${version} already exists, won't overwrite"
exit 1
else
rm -rf opengnsys-pyblkid/.git
mv opengnsys-pyblkid "opengnsys-pyblkid-${version}"
tar -c --xz -v -f "opengnsys-pyblkid_${version}.orig.tar.xz" "opengnsys-pyblkid-${version}"
fi