Changeset 2474
- Timestamp:
- 28/03/2009 12:25:05 (3 years ago)
- Location:
- box/trunk
- Files:
-
- 3 added
- 2 edited
- 22 moved
-
distribution/boxbackup/DISTRIBUTION-MANIFEST.txt (modified) (1 diff)
-
docs/Makefile (modified) (3 diffs)
-
docs/api-notes (moved) (moved from box/trunk/docs/api-docs)
-
docs/docbook (added)
-
docs/docbook/adminguide.xml (moved) (moved from box/trunk/docs/adminguide.xml)
-
docs/docbook/bb-book.xsl (moved) (moved from box/trunk/docs/bb-book.xsl)
-
docs/docbook/bb-man.xsl.tmpl (moved) (moved from box/trunk/docs/bb-man.xsl.tmpl)
-
docs/docbook/bb-nochunk-book.xsl (moved) (moved from box/trunk/docs/bb-nochunk-book.xsl)
-
docs/docbook/bbackupctl.xml (moved) (moved from box/trunk/docs/bbackupctl.xml)
-
docs/docbook/bbackupd-config.xml (moved) (moved from box/trunk/docs/bbackupd-config.xml)
-
docs/docbook/bbackupd.conf.xml (moved) (moved from box/trunk/docs/bbackupd.conf.xml)
-
docs/docbook/bbackupd.xml (moved) (moved from box/trunk/docs/bbackupd.xml)
-
docs/docbook/bbackupquery.xml (moved) (moved from box/trunk/docs/bbackupquery.xml)
-
docs/docbook/bbstoreaccounts.xml (moved) (moved from box/trunk/docs/bbstoreaccounts.xml)
-
docs/docbook/bbstored-certs.xml (moved) (moved from box/trunk/docs/bbstored-certs.xml)
-
docs/docbook/bbstored-config.xml (moved) (moved from box/trunk/docs/bbstored-config.xml)
-
docs/docbook/bbstored.conf.xml (moved) (moved from box/trunk/docs/bbstored.conf.xml)
-
docs/docbook/bbstored.xml (moved) (moved from box/trunk/docs/bbstored.xml)
-
docs/docbook/html (moved) (moved from box/trunk/docs/html)
-
docs/docbook/html/favicon.ico (moved) (moved from box/trunk/docs/favicon.ico)
-
docs/docbook/instguide.xml (moved) (moved from box/trunk/docs/instguide.xml)
-
docs/docbook/raidfile-config.xml (moved) (moved from box/trunk/docs/raidfile-config.xml)
-
docs/docbook/raidfile.conf.xml (moved) (moved from box/trunk/docs/raidfile.conf.xml)
-
docs/images (added)
-
docs/images/bblogo-alpha.xcf (moved) (moved from box/trunk/docs/bblogo-alpha.xcf)
-
docs/tools (added)
-
docs/tools/generate_except_xml.pl (moved) (moved from box/trunk/docs/generate_except_xml.pl) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/distribution/boxbackup/DISTRIBUTION-MANIFEST.txt
r2473 r2474 20 20 test/bbackupd/testfiles 21 21 test/backupdiff 22 docs/api-docs/raidfile docs/api-notes 23 docs/api-docs/raidfile/lib_raidfile docs/api-notes/lib_raidfile 24 docs/api-docs/backup docs/api-notes 25 docs/box-html docs/htmlguide 26 docs/box-html/adminguide docs/htmlguide/adminguide 27 docs/box-html/images docs/htmlguide/images 28 docs/box-html/instguide docs/htmlguide/instguide 29 docs/box-html/man-html docs/htmlguide/manpages 22 docs/Makefile 23 docs/tools 24 docs/api-notes 25 docs/api-notes/lib_raidfile 26 docs/htmlguide 27 docs/htmlguide/adminguide 28 docs/htmlguide/images 29 docs/htmlguide/instguide 30 docs/htmlguide/manpages 30 31 docs/man 31 MKDIR docs/docbook 32 RUN cd docs; sed -i"" -e '/^ExceptionCodes/,/^$/s/\(.*\)/# &/' Makefile 33 docs/Makefile docs/docbook/Makefile 34 docs/ExceptionCodes.xml docs/docbook/ExceptionCodes.xml 35 docs/adminguide.xml docs/docbook/adminguide.xml 36 docs/bb-book.xsl docs/docbook/bb-book.xsl 37 docs/bb-man.xsl.tmpl docs/docbook/bb-man.xsl.tmpl 38 docs/bb-nochunk-book.xsl docs/docbook/bb-nochunk-book.xsl 39 docs/bbackupctl.xml docs/docbook/bbackupctl.xml 40 docs/bbackupd-config.xml docs/docbook/bbackupd-config.xml 41 docs/bbackupd.conf.xml docs/docbook/bbackupd.conf.xml 42 docs/bbackupd.xml docs/docbook/bbackupd.xml 43 docs/bbackupquery.xml docs/docbook/bbackupquery.xml 44 docs/bbstoreaccounts.xml docs/docbook/bbstoreaccounts.xml 45 docs/bbstored-certs.xml docs/docbook/bbstored-certs.xml 46 docs/bbstored-config.xml docs/docbook/bbstored-config.xml 47 docs/bbstored.conf.xml docs/docbook/bbstored.conf.xml 48 docs/bbstored.xml docs/docbook/bbstored.xml 49 docs/instguide.xml docs/docbook/instguide.xml 50 docs/raidfile-config.xml docs/docbook/raidfile-config.xml 51 docs/raidfile.conf.xml docs/docbook/raidfile.conf.xml 52 docs/html docs/docbook/html 53 docs/html/images docs/docbook/html/images 54 RUN svn revert docs/Makefile 32 # RUN cd docs; sed -i"" -e '/^ExceptionCodes/,/^$/s/\(.*\)/# &/' Makefile 33 docs/docbook/Makefile 34 docs/docbook/ExceptionCodes.xml 35 docs/docbook/adminguide.xml 36 docs/docbook/bb-book.xsl 37 docs/docbook/bb-man.xsl.tmpl 38 docs/docbook/bb-nochunk-book.xsl 39 docs/docbook/bbackupctl.xml 40 docs/docbook/bbackupd-config.xml 41 docs/docbook/bbackupd.conf.xml 42 docs/docbook/bbackupd.xml 43 docs/docbook/bbackupquery.xml 44 docs/docbook/bbstoreaccounts.xml 45 docs/docbook/bbstored-certs.xml 46 docs/docbook/bbstored-config.xml 47 docs/docbook/bbstored.conf.xml 48 docs/docbook/bbstored.xml 49 docs/docbook/instguide.xml 50 docs/docbook/raidfile-config.xml 51 docs/docbook/raidfile.conf.xml 52 docs/docbook/html 53 docs/docbook/html/images 54 # RUN svn revert docs/Makefile 55 55 TODO.txt 56 56 BUGS.txt -
box/trunk/docs/Makefile
r2410 r2474 4 4 5 5 DBPROC=xsltproc 6 BOOKXSL=bb-book.xsl 7 NOCHUNKBOOKXSL=bb-nochunk-book.xsl 8 MANXSL=bb-man.xsl 9 HTMLPREFIX=box-html 10 VPATH= adminguide 11 .SUFFIXES: .html .xml .1 .5 .8 6 7 DOCBOOK_DIR = docbook 8 HTML_DIR = htmlguide 9 MAN_DIR = man 10 11 BOOKXSL = $(DOCBOOK_DIR)/bb-book.xsl 12 NOCHUNKBOOKXSL = $(DOCBOOK_DIR)/bb-nochunk-book.xsl 13 MANXSL = $(DOCBOOK_DIR)/bb-man.xsl 14 15 # VPATH= adminguide 16 # .SUFFIXES: .html .xml .1 .5 .8 12 17 13 18 all: docs 14 19 15 20 docs: instguide adminguide manpages 16 @mkdir -p $(HTMLPREFIX)/images 17 @cp html/images/*.png $(HTMLPREFIX)/images/. 18 @cp html/*.css $(HTMLPREFIX)/. 21 @mkdir -p $(HTML_DIR)/images 22 @cp $(DOCBOOK_DIR)/html/images/*.png $(HTML_DIR)/images/. 23 @cp $(DOCBOOK_DIR)/html/*.css $(HTML_DIR)/. 24 @cp $(DOCBOOK_DIR)/html/*.ico $(HTML_DIR)/. 19 25 20 adminguide: $(HTML PREFIX)/adminguide/index.html26 adminguide: $(HTML_DIR)/adminguide/index.html 21 27 22 $(HTML PREFIX)/adminguide/index.html: adminguide.xmlExceptionCodes.xml $(BOOKXSL)28 $(HTML_DIR)/adminguide/index.html: $(DOCBOOK_DIR)/adminguide.xml $(DOCBOOK_DIR)/ExceptionCodes.xml $(BOOKXSL) 23 29 # docname=`echo $@ | sed -e 's/\/index.html//'` 24 $(DBPROC) -o $(HTML PREFIX)/adminguide/ $(BOOKXSL) adminguide.xml30 $(DBPROC) -o $(HTML_DIR)/adminguide/ $(BOOKXSL) $< 25 31 26 instguide: $(HTML PREFIX)/instguide/index.html32 instguide: $(HTML_DIR)/instguide/index.html 27 33 28 $(HTML PREFIX)/instguide/index.html:instguide.xml $(BOOKXSL)29 $(DBPROC) -o $(HTML PREFIX)/instguide/ $(BOOKXSL) instguide.xml34 $(HTML_DIR)/instguide/index.html: $(DOCBOOK_DIR)/instguide.xml $(BOOKXSL) 35 $(DBPROC) -o $(HTML_DIR)/instguide/ $(BOOKXSL) $< 30 36 31 ExceptionCodes.xml: ../ExceptionCodes.txt32 perl ./generate_except_xml.pl37 $(DOCBOOK_DIR)/ExceptionCodes.xml: ../ExceptionCodes.txt 38 perl tools/generate_except_xml.pl $< $@ 33 39 34 40 manpages: $(MANXSL) man-dirs man-nroff man-html … … 46 52 sed -e "s,%%DOCBOOK%%,$${DOCBOOK}," $(MANXSL).tmpl > $(MANXSL) 47 53 48 man-dirs: man/.there $(HTML PREFIX)/man-html/.there54 man-dirs: man/.there $(HTML_DIR)/man-html/.there 49 55 50 $(HTMLPREFIX)/man-html/.there: 51 if [ ! -d $(HTMLPREFIX)/man-html ]; then mkdir -p $(HTMLPREFIX)/man-html; touch $(HTMLPREFIX)/man-html/.there; fi 56 $(HTML_DIR)/man-html/.there: 57 mkdir -p $(HTML_DIR)/man-html 58 touch $(HTML_DIR)/man-html/.there 52 59 53 60 man/.there: 54 if [ ! -d man ]; then mkdir man; touch man/.there; fi 61 then mkdir -p man 62 touch man/.there 55 63 56 64 NROFF_PAGES = bbackupd.8 bbackupd-config.8 bbackupctl.8 bbackupquery.8 \ … … 59 67 bbackupd.conf.5 bbstored.conf.5 raidfile.conf.5 60 68 61 man-nroff: $(NROFF_PAGES)69 NROFF_FILES = $(NROFF_PAGES:%=$(MAN_DIR)/%.gz) 62 70 63 HTML_PAGES = bbackupd.html bbackupd-config.html bbackupctl.html \ 64 bbackupquery.html bbstored.html bbstored-config.html \ 65 bbstoreaccounts.html bbstored-certs.html raidfile-config.html \ 66 bbackupd.conf.html bbstored.conf.html raidfile.conf.html 71 man-nroff: $(NROFF_FILES) 67 72 68 man-html: $(HTML_PAGES) 73 HTML_FILES_1 = $(NROFF_PAGES:%.5=%.html) 74 HTML_FILES_2 = $(HTML_FILES_1:%.8=%.html) 75 HTML_FILES = $(HTML_FILES_2:%=$(HTML_DIR)/man-html/%) 69 76 70 .xml.html: 71 @$(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $< 72 @cp $@ $(HTMLPREFIX)/man-html/. 77 man-html: $(HTML_FILES) 73 78 74 .xml.8 .xml.5: $(MANXSL) 75 @$(DBPROC) -o $@ $(MANXSL) $< 76 @cp $@ man/ 77 @rm -f man/$@.gz 78 @gzip -f -9 man/$@ 79 $(HTML_DIR)/man-html/%.html: $(DOCBOOK_DIR)/%.xml $(NOCHUNKBOOKXSL) 80 $(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $< 81 82 $(MAN_DIR)/%.8.gz: $(DOCBOOK_DIR)/%.xml $(MANXSL) 83 $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 84 gzip $(@:.gz=) 85 86 $(MAN_DIR)/%.5.gz: $(DOCBOOK_DIR)/%.xml $(MANXSL) 87 $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 88 gzip $(@:.gz=) 79 89 80 90 dockit: clean docs 81 tar zcf documentation-kit-0.10.tar.gz $(HTML PREFIX)/91 tar zcf documentation-kit-0.10.tar.gz $(HTML_DIR)/ 82 92 83 93 clean: 84 if [ -d ./$(HTMLPREFIX) ]; then rm -rf $(HTMLPREFIX) ; fi 85 if [ -d ./man ]; then rm -rf ./man/; fi 86 if [ -f ExceptionCodes.xml ]; then rm ExceptionCodes.xml; fi 87 rm -f $(NROFF_PAGES) $(HTML_PAGES) 88 if [ -f documentation-kit-0.10.tar.gz ]; then rm documentation-kit-0.10.tar.gz; fi 94 rm -f $(HTML_FILES) 95 rm -f $(NROFF_FILES) 96 rm -f $(DOCBOOK_DIR)/ExceptionCodes.xml 97 rm -f documentation-kit-0.10.tar.gz 89 98 90 99 -
box/trunk/docs/tools/generate_except_xml.pl
r2151 r2474 2 2 use strict; 3 3 4 open (EXCEPT, "<../ExceptionCodes.txt") or die "Can't open ../ExceptionCodes.txt: $!\n";5 open (DOCBOOK, "> ExceptionCodes.xml") or die "Can't open Exceptioncodes.xmlfor writing: $!\n";4 open (EXCEPT, "< $ARGV[0]") or die "Can't open $ARGV[0]: $!\n"; 5 open (DOCBOOK, "> $ARGV[1]") or die "Can't open $ARGV[1] for writing: $!\n"; 6 6 7 7 print DOCBOOK <<EOD;
Note: See TracChangeset
for help on using the changeset viewer.
