From 4d5fcc97017917b21b161d66ab86ed954f976879 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 15 Jan 2011 22:26:35 +0900 Subject: [PATCH] add update-package.sh script to update and commit fedora hackages to latest cabal2spec --- update-package.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 update-package.sh diff --git a/update-package.sh b/update-package.sh new file mode 100755 index 0000000..1116ac2 --- /dev/null +++ b/update-package.sh @@ -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"