Changeset fd45e859 for doc


Ignore:
Timestamp:
2015-06-04T17:13:22Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
1cef55f
Parents:
81d40fe
git-author:
dequis <dx@…> (31-05-15 23:50:08)
git-committer:
dequis <dx@…> (04-06-15 17:13:22)
Message:

Allow building docs from any directory

Also just remove the .git check completely - just rely on make skipping
it if it exists already.

Location:
doc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • doc/Makefile

    r81d40fe rfd45e859  
    55
    66all:
    7         # Only build the docs if this is a git tree
    8         test ! '(' -d ../.git -o -d ../.bzr ')' || $(MAKE) -C user-guide
     7        $(MAKE) -C user-guide
    98
    109install:
  • doc/user-guide/Makefile

    r81d40fe rfd45e859  
    3131        xsltproc --xinclude --output $@ docbook.xsl $<
    3232
    33 help.txt: help.xml help.xsl commands.xml misc.xml quickstart.xml
    34         python genhelp.py $< $@
     33help.txt: $(_SRCDIR_)help.xml $(_SRCDIR_)commands.xml $(_SRCDIR_)misc.xml $(_SRCDIR_)quickstart.xml
     34        python $(_SRCDIR_)genhelp.py $< $@
    3535
    3636clean:
  • doc/user-guide/genhelp.py

    r81d40fe rfd45e859  
    2020
    2121
     22import os
    2223import re
    2324import sys
     
    222223        return
    223224
     225    # ensure that we really are in the same directory as the input file
     226    os.chdir(os.path.dirname(os.path.abspath(sys.argv[1])))
     227
    224228    txt = process_file(sys.argv[1])
    225229    open(sys.argv[2], "w").write(txt)
Note: See TracChangeset for help on using the changeset viewer.