pw-am.sh: script to import patches from patchwork into git repository
authorMarcin Juszkiewicz <hrw@openembedded.org>
Mon, 6 Apr 2009 15:01:19 +0000 (17:01 +0200)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Mon, 6 Apr 2009 15:11:55 +0000 (17:11 +0200)
contrib/patchwork/pw-am.sh [new file with mode: 0755]

diff --git a/contrib/patchwork/pw-am.sh b/contrib/patchwork/pw-am.sh
new file mode 100755 (executable)
index 0000000..2ce6dc4
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Idea and implementation:  Koen Kooi
+# Multiple patches support: Marcin Juszkiewicz
+#
+# This script will fetch an 'mbox' patch from patchwork and git am it
+# usage: pw-am.sh <number>
+# example: 'pw-am.sh 221' will get the patch from http://patchwork.openembedded.org/patch/221/
+
+for patchnumber in $@;
+do
+       wget -nv http://patchwork.openembedded.org/patch/$patchnumber/mbox/ -O pw-am-$patchnumber.patch
+       git am pw-am-$patchnumber.patch
+done