3 ## John R. Sheets <jsheets@codeweavers.com>
5 ## This is a convenience script for building the website docs for
6 ## www.winehq.com. It creates tarballs of the HTML with special
7 ## server-side includes and CSS settings that aren't appropriate for
8 ## the mainline Wine tree. For this reason, and to make it easier to
9 ## set up an automated website update system, I'm putting this in
10 ## a standalone shell script.
12 ## There's no need to invoke the Wine make system just for web
13 ## updates. For example, we can just grab the documentation
14 ## subdirectory, without having to pull the entire wine tree:
16 ## $ cvs co wine/documentation
17 ## $ cd wine/documentation
22 ## Want to put this into a sub-directory for easier maintenance
23 if [ -e $WWWDIR ]; then
25 mv $WWWDIR $WWWDIR.old
29 ## Create four-book HTML tarball
30 echo "./db2html-winehq wine-user.sgml"
31 .
/db2html-winehq wine-user.sgml
32 echo "./db2html-winehq wine-devel.sgml"
33 .
/db2html-winehq wine-devel.sgml
34 echo "./db2html-winehq winelib-user.sgml"
35 .
/db2html-winehq winelib-user.sgml
36 echo "./db2html-winehq wine-pkg.sgml"
37 .
/db2html-winehq wine-pkg.sgml
38 tar czf winedoc-html.tgz wine-user wine-devel winelib-user wine-pkg
39 cp winedoc-html.tgz
$WWWDIR
41 ## Create one-book HTML tarball
42 echo "./db2html-winehq wine-doc.sgml"
43 .
/db2html-winehq wine-doc.sgml
44 tar czf wine-set-html.tgz wine-doc
45 cp wine-set-html.tgz
$WWWDIR
47 ## Create PostScript tarball
48 echo "db2ps wine-user.sgml"
49 db2ps wine-user.sgml
> /dev
/null
2>&1
50 echo "db2ps wine-devel.sgml"
51 db2ps wine-devel.sgml
> /dev
/null
2>&1
52 echo "db2ps winelib-user.sgml"
53 db2ps winelib-user.sgml
> /dev
/null
2>&1
54 echo "db2ps wine-pkg.sgml"
55 db2ps wine-pkg.sgml
> /dev
/null
2>&1
56 tar czf winedoc-ps.tgz wine-user.ps wine-devel.ps winelib-user.ps wine-pkg.ps
57 cp winedoc-ps.tgz
$WWWDIR
60 echo "db2pdf wine-user.sgml"
61 db2pdf wine-user.sgml
> /dev
/null
2>&1
62 echo "db2pdf wine-devel.sgml"
63 db2pdf wine-devel.sgml
> /dev
/null
2>&1
64 echo "db2pdf winelib-user.sgml"
65 db2pdf winelib-user.sgml
> /dev
/null
2>&1
66 echo "db2pdf wine-pkg.sgml"
67 db2pdf wine-pkg.sgml
> /dev
/null
2>&1
68 tar czf winedoc-pdf.tgz wine-user.pdf wine-devel.pdf winelib-user.pdf wine-pkg.pdf
69 cp winedoc-pdf.tgz
$WWWDIR
71 ## Create SGML tarball
72 echo "Creating SGML package..."
73 tar czf winedoc-sgml.tgz
*.sgml
*.dsl
*.ent db2html-winehq
74 cp winedoc-sgml.tgz
$WWWDIR
76 ## Done creating downloadable tarballs for users. Now we want to
77 ## create a tarball of SHTML in a slightly different form, for the
78 ## website. These versions use special server-side includes which
79 ## aren't appropriate outside of winehq.com.
81 ## Use the special website stylesheet
82 export WINEDOC_STYLESHEET
=..
/winehq.dsl
84 ## Create four-book SHTML tarball
85 echo "./db2html-winehq wine-user.sgml"
86 .
/db2html-winehq wine-user.sgml
87 echo "./db2html-winehq wine-devel.sgml"
88 .
/db2html-winehq wine-devel.sgml
89 echo "./db2html-winehq winelib-user.sgml"
90 .
/db2html-winehq winelib-user.sgml
91 echo "./db2html-winehq wine-pkg.sgml"
92 .
/db2html-winehq wine-pkg.sgml
93 tar czf winehq-shtml.tgz wine-user wine-devel winelib-user wine-pkg
94 cp winehq-shtml.tgz
$WWWDIR