Instead of single "patch" file, support "*.patch"

This commit is contained in:
Ian Douglas Scott 2017-03-29 16:28:46 -07:00
parent 2758c9e03c
commit 9865c15712
No known key found for this signature in database
GPG Key ID: 4924E10E199B5959

View File

@ -13,6 +13,7 @@ export BINDIR=bin
export CARGOFLAGS=
set -e
shopt -s nullglob
function usage {
echo "cook.sh $1 <op>" >&2
@ -71,10 +72,10 @@ function op {
popd > /dev/null
fi
if [ -f "patch" ]
then
patch -p1 -d build < patch
fi
for patch in *.patch
do
patch -p1 -d build < "$patch"
done
;;
unfetch)