Skip to content
Snippets Groups Projects
Unverified Commit 9865c157 authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

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

parent 2758c9e0
No related branches found
No related tags found
1 merge request!4Recipe for Lua
...@@ -13,6 +13,7 @@ export BINDIR=bin ...@@ -13,6 +13,7 @@ export BINDIR=bin
export CARGOFLAGS= export CARGOFLAGS=
set -e set -e
shopt -s nullglob
function usage { function usage {
echo "cook.sh $1 <op>" >&2 echo "cook.sh $1 <op>" >&2
...@@ -71,10 +72,10 @@ function op { ...@@ -71,10 +72,10 @@ function op {
popd > /dev/null popd > /dev/null
fi fi
if [ -f "patch" ] for patch in *.patch
then do
patch -p1 -d build < patch patch -p1 -d build < "$patch"
fi done
;; ;;
unfetch) unfetch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment