backport.sh 375 B

123456789101112131415161718
  1. #!/bin/sh
  2. if [ "$1" == "" ]; then
  3. echo syntax: $0 version
  4. exit
  5. fi
  6. cmd=`grep -w $1 ../sylpheed-claws/PATCHSETS`
  7. if [ "$cmd" == "" ]; then
  8. echo no patchset found
  9. exit
  10. fi
  11. sh -c "$cmd"
  12. patch -p0 < $1.patchset || exit
  13. rm -f commitHelper.msg
  14. echo -e "\t\tFrom $1" > commitHelper.msg
  15. files=`grep Index: $1.patchset|sed "s/Index://"`
  16. ./commitHelper $files
  17. rm -f commitHelper.msg