comparison bin/apply.sh @ 286:db07fef40642

add a command to apply patches
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 10 May 2013 10:59:38 -0700
parents
children
comparison
equal deleted inserted replaced
285:fd0e81fdf1fa 286:db07fef40642
1 #!/bin/bash
2 # apply a patch from the web
3 # TODO: take from file as well
4
5 LVL=1
6 if ((curl $1 2> /dev/null) | (patch -p${LVL} --dry-run -b > /dev/null))
7 then
8 echo "hi"
9 fi