1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 19:05:47 +01:00

Add horrifically mangled, unicode-aware asciidoc.

This commit is contained in:
Kris Maglione
2009-03-30 20:15:09 -04:00
parent ebfb0b8ebd
commit 3c22453d31
2 changed files with 4262 additions and 3 deletions

View File

@@ -6,11 +6,11 @@ ASCIIDOC = asciidoc
AWK = awk
LOCALE = $(shell basename `pwd`)
LANG = $(shell basename `pwd` | $(AWK) -F- '{ print ($$1 ~ /^[a-z][a-z]$$/) ? $$1 : "en" }')
DOCLANG = $(shell basename `pwd` | $(AWK) -F- '{ print ($$1 ~ /^[a-z][a-z]$$/) ? $$1 : "en" }')
ADC_SRC_FILES = $(wildcard *.txt)
ADC_FILES = $(ADC_SRC_FILES:%.txt=%.html)
ADC_DEPS = $(wildcard asciidoc.conf lang-$(LANG).conf)
ADC_DEPS = $(wildcard asciidoc.conf lang-$(DOCLANG).conf)
DOC_FILES = $(ADC_FILES) version.html
@@ -52,7 +52,7 @@ check-asciidoc:
$(ADC_FILES): %.html: %.txt $(BASE)/Makefile.doc $(ADC_DEPS)
@echo "DOC locale/$(LOCALE)/$@"
$(ASCIIDOC) --unsafe -a linkcss -a quirks! -a lang=$(LANG) -a doctitle="$(shell basename $@)" -o $@ $<
$(ASCIIDOC) --unsafe -a linkcss -a quirks! -a lang=$(DOCLANG) -a doctitle="$(shell basename $@)" -o $@ $<
version.html: ../../NEWS $(BASE)/Makefile.doc $(ADC_DEPS)
@echo "DOC locale/$(LOCALE)/$@"

4259
contrib/asciidoc Executable file

File diff suppressed because it is too large Load Diff