pw-am.sh 485 B

123456789101112131415
  1. #!/bin/sh
  2. #
  3. # Idea and implementation: Koen Kooi
  4. # Multiple patches support: Marcin Juszkiewicz
  5. #
  6. # This script will fetch an 'mbox' patch from patchwork and git am it
  7. # usage: pw-am.sh <number>
  8. # example: 'pw-am.sh 221' will get the patch from http://patchwork.openembedded.org/patch/221/
  9. for patchnumber in $@;
  10. do
  11. wget -nv http://patchwork.yoctoproject.org/patch/$patchnumber/mbox/ -O pw-am-$patchnumber.patch
  12. git am -s pw-am-$patchnumber.patch
  13. rm pw-am-$patchnumber.patch
  14. done