add small script for rebases

This commit is contained in:
Lukas Nykryn 2017-02-24 15:26:28 +01:00
parent e82efb8130
commit 912bde26bb

9
rebase.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
curl https://raw.githubusercontent.com/fedora-sysv/chkconfig/master/chkconfig.spec -o chkconfig.spec
git add chkconfig.spec
spectool -g chkconfig.spec
fedpkg new-sources $(basename $(spectool -S -l chkconfig.spec | awk '{print $2;}'))
git commit -m $(grep Version chkconfig.spec | awk '{print $2;}')