Create HTML and ASCII versions of the documentation using docbook now.
authorRoland Rosenfeld <roland@spinnaker.de>
Sun, 31 Mar 2002 22:05:41 +0000 (22:05 +0000)
committerRoland Rosenfeld <roland@spinnaker.de>
Sun, 31 Mar 2002 22:05:41 +0000 (22:05 +0000)
debian/changelog
debian/control
debian/docs
debian/rules

index a29c0aa..b89428e 100644 (file)
@@ -1,3 +1,9 @@
+privoxy (2.9.13-beta-2) unstable; urgency=low
+
+  * Create HTML and ASCII versions of the documentation using docbook now.
+
+ -- Roland Rosenfeld <roland@debian.org>  Sun, 31 Mar 2002 23:53:28 +0200
+
 privoxy (2.9.13-beta-1) unstable; urgency=low
 
   * Initial Release.
 privoxy (2.9.13-beta-1) unstable; urgency=low
 
   * Initial Release.
index 252ec51..580b85b 100644 (file)
@@ -2,7 +2,7 @@ Source: privoxy
 Section: web
 Priority: optional
 Maintainer: Roland Rosenfeld <roland@debian.org>
 Section: web
 Priority: optional
 Maintainer: Roland Rosenfeld <roland@debian.org>
-Build-Depends: debhelper (>> 3.0.0), autoconf, libpcre3-dev
+Build-Depends: debhelper (>> 3.0.0), autoconf, libpcre3-dev, docbook-utils
 Standards-Version: 3.5.6
 
 Package: privoxy
 Standards-Version: 3.5.6
 
 Package: privoxy
index 4e98cf4..835e215 100644 (file)
@@ -1,6 +1,8 @@
 README
 AUTHORS
 README
 AUTHORS
-doc/text/faq.txt
-doc/text/user-manual.txt
-doc/text/developer-manual.txt
-
+doc/source/faq.txt
+doc/source/user-manual.txt
+doc/source/developer-manual.txt
+doc/source/faq
+doc/source/user-manual
+doc/source/developer-manual
index 6fecafd..be5438e 100755 (executable)
@@ -15,6 +15,9 @@ DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 DEBDIR=`pwd`/debian/privoxy
 
 
 DEBDIR=`pwd`/debian/privoxy
 
+DB2HTML=jw -f docbook -b html -d `pwd`/ldpOK.dsl\#html
+
+
 CFLAGS="-O2"
 WITHDEBUG=""
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 CFLAGS="-O2"
 WITHDEBUG=""
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
@@ -30,18 +33,27 @@ configure-stamp:
        autoconf
        env CFLAGS=$(CFLAGS) \
                ./configure --prefix=/usr --sysconfdir=/etc \
        autoconf
        env CFLAGS=$(CFLAGS) \
                ./configure --prefix=/usr --sysconfdir=/etc \
-                       --mandir=/usr/share/man --with-docbook=no \
-                       $(WITHDEBUG)
+               --mandir=/usr/share/man $(WITHDEBUG) \
+               --with-docbook=/usr/share/sgml/docbook/stylesheet/dsssl/modular
 
        touch configure-stamp
 
 build: build-stamp
 
        touch configure-stamp
 
 build: build-stamp
-
 build-stamp: configure-stamp 
        dh_testdir
 
        $(MAKE)
 
 build-stamp: configure-stamp 
        dh_testdir
 
        $(MAKE)
 
+#      And now we create the documentation (manually):
+       $(MAKE) doc/source/ldpOK.dsl
+       (cd doc/source; \
+        $(DB2HTML) -o faq faq.sgml; \
+        $(DB2HTML) -o user-manual user-manual.sgml; \
+        $(DB2HTML) -o developer-manual developer-manual.sgml; \
+        docbook2txt faq.sgml; \
+        docbook2txt user-manual.sgml; \
+        docbook2txt developer-manual.sgml)
+
        touch build-stamp
 
 clean:
        touch build-stamp
 
 clean:
@@ -49,10 +61,13 @@ clean:
        dh_testroot
        rm -f build-stamp configure-stamp
 
        dh_testroot
        rm -f build-stamp configure-stamp
 
-       -$(MAKE) clean
+       -$(MAKE) clobber
        rm -f privoxy 
        rm -f privoxy 
-       rm -f configure config.h config.h.in config.log config.cache \
-               config.status GNUmakefile
+       rm -f configure config.h GNUmakefile 
+       rm -f doc/source/ldpOK.dsl
+       rm -rf doc/source/faq doc/source/user-manual \
+               doc/source/developer-manual
+       rm -f doc/source/*.txt
 
        dh_clean
 
 
        dh_clean
 
@@ -76,10 +91,6 @@ install: build
        rm -f $(DEBDIR)/etc/privoxy/templates/*~
        rm -rf $(DEBDIR)/etc/privoxy/templates/CVS
 
        rm -f $(DEBDIR)/etc/privoxy/templates/*~
        rm -rf $(DEBDIR)/etc/privoxy/templates/CVS
 
-       cp -r doc/webserver/user-manual $(DEBDIR)/usr/share/doc/privoxy/
-       cp -r doc/webserver/faq $(DEBDIR)/usr/share/doc/privoxy/
-       cp -r doc/webserver/developer-manual $(DEBDIR)/usr/share/doc/privoxy/
-
 
 # Build architecture-independent files here.
 binary-indep: build install
 
 # Build architecture-independent files here.
 binary-indep: build install