861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
39 lines
1.7 KiB
Diff
39 lines
1.7 KiB
Diff
--- a/Makefile 2018-12-30 16:13:10.512451500 -0600
|
|
+++ b/Makefile 2018-12-30 16:15:27.507448741 -0600
|
|
@@ -17,7 +17,7 @@
|
|
# Must be kept in sync with doc/docgen.ld
|
|
DOC_SRCS = $(filter-out lib/markdown.lua lib/lousy/init.lua,$(shell for d in doc/luadoc lib common/clib; do find $$d -type f; done)) tests/lib.lua
|
|
|
|
-all: options newline luakit luakit.1.gz luakit.so apidoc
|
|
+all: options newline luakit luakit.1.gz luakit.so
|
|
|
|
options:
|
|
@echo luakit build options:
|
|
@@ -79,27 +79,10 @@
|
|
luakit.1.gz: luakit.1
|
|
@gzip -c $< > $@
|
|
|
|
-doc/apidocs/index.html: $(DOC_SRCS) $(wildcard build-utils/docgen/*)
|
|
- rm -rf doc/apidocs
|
|
- mkdir doc/apidocs
|
|
- $(LUA_BIN_NAME) ./build-utils/docgen/makedoc.lua
|
|
-
|
|
-apidoc: doc/apidocs/index.html
|
|
-
|
|
-doc: buildopts.h $(THEAD) $(TSRC)
|
|
- doxygen -s doc/luakit.doxygen
|
|
-
|
|
-clean:
|
|
- rm -rf doc/apidocs doc/html luakit $(OBJS) $(EXT_OBJS) $(TSRC) $(THEAD) buildopts.h luakit.1 luakit.1.gz luakit.so
|
|
-
|
|
install: all
|
|
install -d $(DESTDIR)$(PREFIX)/share/luakit/
|
|
install -d $(DESTDIR)$(DOCDIR) $(DESTDIR)$(DOCDIR)/classes $(DESTDIR)$(DOCDIR)/modules $(DESTDIR)$(DOCDIR)/pages
|
|
install -m644 README.md AUTHORS COPYING.GPLv3 $(DESTDIR)$(DOCDIR)
|
|
- install -m644 doc/apidocs/classes/* $(DESTDIR)$(DOCDIR)/classes
|
|
- install -m644 doc/apidocs/modules/* $(DESTDIR)$(DOCDIR)/modules
|
|
- install -m644 doc/apidocs/pages/* $(DESTDIR)$(DOCDIR)/pages
|
|
- install -m644 doc/apidocs/*.html $(DESTDIR)$(DOCDIR)
|
|
install -d $(DESTDIR)$(PREFIX)/share/luakit/lib $(DESTDIR)$(PREFIX)/share/luakit/lib/lousy $(DESTDIR)$(PREFIX)/share/luakit/lib/lousy/widget
|
|
install -m644 lib/*.* $(DESTDIR)$(PREFIX)/share/luakit/lib
|
|
install -m644 lib/lousy/*.* $(DESTDIR)$(PREFIX)/share/luakit/lib/lousy
|