Mercurial > ~dholland > hg > ag > index.cgi
comparison doc/manual/buildrules.sh @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13d2b8934445 |
---|---|
1 #!/bin/sh | |
2 # buildrules.sh - create make rules for manual | |
3 # usage: echo $(SUBTEXFILES) | buildrules.sh > rules.mk | |
4 | |
5 tr ' ' '\n' | sed 's/\.tex$//' | awk ' | |
6 { | |
7 printf "usersguide.pdf: $(SRCDIR)/%s.tex\n", $1; | |
8 basedep($1); | |
9 printf "%s.pdf: $(SRCDIR)/%s.tex\n", $1, $1; | |
10 printf "\t@$(SRCDIR)/buildchapter.sh %s.tex\n", $1; | |
11 } | |
12 END { | |
13 basedep("usersguide"); | |
14 } | |
15 | |
16 function basedep(f) { | |
17 printf "%s.pdf: $(SRCDIR)/$(DEFSFILE)\n", f; | |
18 } | |
19 ' |