projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e7c32f
)
UCI contrib patch handling
author
Steven Barth
<steven@midlink.org>
Mon, 26 Oct 2009 13:33:44 +0000
(13:33 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 26 Oct 2009 13:33:44 +0000
(13:33 +0000)
contrib/uci/Makefile
patch
|
blob
|
history
diff --git
a/contrib/uci/Makefile
b/contrib/uci/Makefile
index 19625aa723241363e47193247100ecf0a6e8393a..04aa38b3ac9561bf06c41d666eff5c53515fa369 100644
(file)
--- a/
contrib/uci/Makefile
+++ b/
contrib/uci/Makefile
@@
-23,9
+23,12
@@
$(UCI_FILE):
$(UCI_PATCHDIR)/series:
(cd $(UCI_PATCHDIR); ls *.patch | sort > series)
-$(UCI_DIR)/.prepared: $(UCI_FILE)
+$(UCI_DIR)/.prepared: $(UCI_
PATCHDIR)/series $(UCI_
FILE)
rm -rf $(UCI_DIR)
tar xvfz $(UCI_FILE)
+ [ -f "$(UCI_PATCHDIR)/series" ] && while read patch; do \
+ patch -d $(UCI_DIR) -p1 < $(UCI_PATCHDIR)/$$patch; \
+ done < $(UCI_PATCHDIR)/series || true
touch $@
compile: $(UCI_DIR)/.prepared