diff -up asciidoc-8.4.5/asciidoc.py.datadir asciidoc-8.4.5/asciidoc.py --- asciidoc-8.4.5/asciidoc.py.datadir 2009-07-18 14:48:29.000000000 -0400 +++ asciidoc-8.4.5/asciidoc.py 2009-07-18 14:50:26.000000000 -0400 @@ -651,6 +651,8 @@ def filter_lines(filter_cmd, lines, attr if not found: found = findfilter(filtername, CONF_DIR, cmd) if not found: + found = findfilter(filtername, DATA_DIR, cmd) + if not found: found = findfilter(filtername, APP_DIR, cmd) else: if os.path.isfile(cmd): @@ -4997,6 +4999,7 @@ APP_DIR = None # This file' USER_DIR = None # ~/.asciidoc # Global configuration files directory (set by Makefile build target). CONF_DIR = '/etc/asciidoc' +DATA_DIR = '/usr/share/asciidoc' HELP_FILE = 'help.conf' # Default (English) help file. # Globals diff -up asciidoc-8.4.5/Makefile.in.datadir asciidoc-8.4.5/Makefile.in --- asciidoc-8.4.5/Makefile.in.datadir 2009-04-23 18:49:43.000000000 -0400 +++ asciidoc-8.4.5/Makefile.in 2009-07-18 14:46:22.000000000 -0400 @@ -23,6 +23,7 @@ srcdir = @srcdir@ VPATH = @srcdir@ ASCIIDOCCONF = $(sysconfdir)/asciidoc +ASCIIDOCDATA = $(datadir)/asciidoc prog = asciidoc.py a2x progdir = $(bindir) @@ -126,6 +127,13 @@ fixconfpath: mv $$f.out $$f; \ done +fixdatapath: + @for f in $(prog); do \ + echo "Fixing DATA_DIR in $$f"; \ + $(SED) "s#^DATA_DIR = '.*'#DATA_DIR = '$(ASCIIDOCDATA)'#; s#^DATA_DIR=.*#DATA_DIR=$(ASCIIDOCDATA)#" $$f > $$f.out; \ + mv $$f.out $$f; \ + done + install-vim: @for d in $(DESTDIR)/$(vimdir) /etc/vim; do \ if ! test -d $$d; then continue; fi ; \ @@ -145,7 +153,7 @@ uninstall-vim: done -build: fixconfpath +build: fixconfpath fixdatapath install: all $(PROGTARGETS) $(DATATARGETS) progsymlink install-vim