comparison xml/Makefile @ 360:7eb24880b111

add help files to the web documentation
author Carl Byington <carl@five-ten-sg.com>
date Mon, 04 Aug 2014 08:10:12 -0700
parents 0ce5cc452d02
children d29cce60f393
comparison
equal deleted inserted replaced
359:93621e963303 360:7eb24880b111
1 ver:=$(shell grep versionName ../AndroidManifest.xml | cut -d'"' -f2) 1 ver:=$(shell grep versionName ../AndroidManifest.xml | cut -d'"' -f2)
2 pkg:=510Connectbot 2 pkg:=510Connectbot
3 t:=../html
3 4
4 all: 5 all:
5 sed -e 's/@PACKAGE@/$(pkg)/g' -e 's/@VERSION@/$(ver)/g' <510connectbot.in >510connectbot 6 sed -e 's/@PACKAGE@/$(pkg)/g' -e 's/@VERSION@/$(ver)/g' <510connectbot.in >510connectbot
6 cat header.xml 510connectbot >510connectbot.xml 7 cat header.xml 510connectbot >510connectbot.xml
7 cat header.sgml 510connectbot >510connectbot.sgml 8 cat header.sgml 510connectbot >510connectbot.sgml
8 rm -f ../html/*html 9 [ -d $(t) ] || mkdir $(t)
9 rm -f ../html/*pdf 10 rm -f $(t)/*html
10 xmlto -o ../html xhtml 510connectbot.xml 11 rm -f $(t)/*pdf
11 xmlto -o ../html pdf 510connectbot.xml 12 xmlto -o $(t) xhtml 510connectbot.xml
13 xmlto -o $(t) pdf 510connectbot.xml
12 rm -f 510connectbot.xml 510connectbot.sgml 14 rm -f 510connectbot.xml 510connectbot.sgml