Add make_orig script
This downloads and creates the .orig tar gz for debian packagingogrepository-fixes
parent
cbbea5ff47
commit
7c83f24b31
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue