25 lines
800 B
Bash
Executable file
25 lines
800 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# DO NOT RUN UNLESS YOUR REALLY KNOW WHAT YOU ARE DOING
|
|
|
|
DEBEMAIL="joel.klimont@gmail.com"
|
|
DEBFULLNAME="Joel Klimont"
|
|
export DEBEMAIL DEBFULLNAME
|
|
python3 setup.py sdist
|
|
cd dist || exit
|
|
tar -xzmf *.tar.gz
|
|
cd complib-0.0.1 || exit
|
|
git init
|
|
git remote add origin https://github.com/F-WuTS/complib-DEB.git
|
|
git fetch origin
|
|
git checkout -b master --track origin/master
|
|
gbp import-orig -u 0.0.1 --pristine-tar --sign-tags --no-interactive ../complib-0.0.1.tar.gz
|
|
mv setup.py setup.py.old
|
|
echo "#!/usr/bin/env python3" >> setup.py
|
|
cat setup.py.old >> setup.py
|
|
debmake -b":python3"
|
|
mv setup.py.old setup.py
|
|
git add debian/
|
|
git commit -m "init"
|
|
gbp buildpackage --git-pristine-tar --git-sign-tags --git-keyid=97B61E4D515353C0A498D2AB22680B5AAC0C4FCE
|
|
git push --set-upstream origin master
|