add update-package.sh script to update and commit fedora hackages to latest cabal2spec

This commit is contained in:
Jens Petersen 2011-01-15 22:26:35 +09:00
parent 381ac69fec
commit 09d837536f

14
update-package.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e -x
PKG=$1
cd ~/fedora/haskell/$PKG/master
git pull
cat ~/fedora/haskell/cabal2spec/master/cabal2spec-0.22.4.diff | sed -e "s/@PKG@/$PKG/" | patch -p1
rpmdev-bumpspec --comment="update to cabal2spec-0.22.4" $PKG.spec
fedpkg commit -p -m "update to cabal2spec-0.22.4"