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