2001-01-19 20:58:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
## John R. Sheets <jsheets@codeweavers.com>
|
|
|
|
|
|
|
|
## This is a convenience script for building the website docs for
|
|
|
|
## www.winehq.com. It creates tarballs of the HTML with special
|
|
|
|
## server-side includes and CSS settings that aren't appropriate for
|
|
|
|
## the mainline Wine tree. For this reason, and to make it easier to
|
|
|
|
## set up an automated website update system, I'm putting this in
|
|
|
|
## a standalone shell script.
|
|
|
|
##
|
|
|
|
## There's no need to invoke the Wine make system just for web
|
|
|
|
## updates. For example, we can just grab the documentation
|
|
|
|
## subdirectory, without having to pull the entire wine tree:
|
|
|
|
##
|
|
|
|
## $ cvs co wine/documentation
|
|
|
|
## $ cd wine/documentation
|
|
|
|
## $ ./make_winehq
|
|
|
|
## $ rsync ...
|
|
|
|
|
|
|
|
WWWDIR=www.winehq.com
|
|
|
|
## Want to put this into a sub-directory for easier maintenance
|
2002-01-29 17:52:28 +00:00
|
|
|
if [ -d "$WWWDIR" -o -f "$WWWDIR" ]; then
|
2001-11-25 00:51:36 +00:00
|
|
|
rm -rf "$WWWDIR.old"
|
|
|
|
mv "$WWWDIR" "$WWWDIR".old
|
2001-01-19 20:58:37 +00:00
|
|
|
fi
|
2001-11-25 00:51:36 +00:00
|
|
|
mkdir "$WWWDIR"
|
2001-01-19 20:58:37 +00:00
|
|
|
|
|
|
|
## Create four-book HTML tarball
|
|
|
|
echo "./db2html-winehq wine-user.sgml"
|
|
|
|
./db2html-winehq wine-user.sgml
|
|
|
|
echo "./db2html-winehq wine-devel.sgml"
|
|
|
|
./db2html-winehq wine-devel.sgml
|
|
|
|
echo "./db2html-winehq winelib-user.sgml"
|
|
|
|
./db2html-winehq winelib-user.sgml
|
|
|
|
echo "./db2html-winehq wine-pkg.sgml"
|
|
|
|
./db2html-winehq wine-pkg.sgml
|
|
|
|
tar czf winedoc-html.tgz wine-user wine-devel winelib-user wine-pkg
|
2001-11-25 00:51:36 +00:00
|
|
|
cp winedoc-html.tgz "$WWWDIR"
|
2001-01-19 20:58:37 +00:00
|
|
|
|
|
|
|
## Create one-book HTML tarball
|
|
|
|
echo "./db2html-winehq wine-doc.sgml"
|
|
|
|
./db2html-winehq wine-doc.sgml
|
|
|
|
tar czf wine-set-html.tgz wine-doc
|
2001-11-25 00:51:36 +00:00
|
|
|
cp wine-set-html.tgz "$WWWDIR"
|
2001-01-19 20:58:37 +00:00
|
|
|
|
|
|
|
## Create PostScript tarball
|
2001-09-26 23:02:31 +00:00
|
|
|
echo "db2ps -d ./print.dsl wine-user.sgml"
|
|
|
|
db2ps -d ./print.dsl wine-user.sgml > /dev/null 2>&1
|
|
|
|
echo "db2ps -d ./print.dsl wine-devel.sgml"
|
|
|
|
db2ps -d ./print.dsl wine-devel.sgml > /dev/null 2>&1
|
|
|
|
echo "db2ps -d ./print.dsl winelib-user.sgml"
|
|
|
|
db2ps -d ./print.dsl winelib-user.sgml > /dev/null 2>&1
|
|
|
|
echo "db2ps -d ./print.dsl wine-pkg.sgml"
|
|
|
|
db2ps -d ./print.dsl wine-pkg.sgml > /dev/null 2>&1
|
2001-01-19 20:58:37 +00:00
|
|
|
tar czf winedoc-ps.tgz wine-user.ps wine-devel.ps winelib-user.ps wine-pkg.ps
|
2001-11-25 00:51:36 +00:00
|
|
|
cp winedoc-ps.tgz "$WWWDIR"
|
2001-01-19 20:58:37 +00:00
|
|
|
|
|
|
|
## Create PDF tarball
|
2001-09-26 23:02:31 +00:00
|
|
|
echo "db2pdf -d ./print.dsl wine-user.sgml"
|
|
|
|
db2pdf -d ./print.dsl wine-user.sgml > /dev/null 2>&1
|
|
|
|
echo "db2pdf -d ./print.dsl wine-devel.sgml"
|
|
|
|
db2pdf -d ./print.dsl wine-devel.sgml > /dev/null 2>&1
|
|
|
|
echo "db2pdf -d ./print.dsl winelib-user.sgml"
|
|
|
|
db2pdf -d ./print.dsl winelib-user.sgml > /dev/null 2>&1
|
|
|
|
echo "db2pdf -d ./print.dsl wine-pkg.sgml"
|
|
|
|
db2pdf -d ./print.dsl wine-pkg.sgml > /dev/null 2>&1
|
2001-01-19 20:58:37 +00:00
|
|
|
tar czf winedoc-pdf.tgz wine-user.pdf wine-devel.pdf winelib-user.pdf wine-pkg.pdf
|
2001-11-25 00:51:36 +00:00
|
|
|
cp winedoc-pdf.tgz "$WWWDIR"
|
2001-01-19 20:58:37 +00:00
|
|
|
|
|
|
|
## Create SGML tarball
|
|
|
|
echo "Creating SGML package..."
|
|
|
|
tar czf winedoc-sgml.tgz *.sgml *.dsl *.ent db2html-winehq
|
2001-11-25 00:51:36 +00:00
|
|
|
cp winedoc-sgml.tgz "$WWWDIR"
|
2001-01-19 20:58:37 +00:00
|
|
|
|
|
|
|
## Done creating downloadable tarballs for users. Now we want to
|
|
|
|
## create a tarball of SHTML in a slightly different form, for the
|
|
|
|
## website. These versions use special server-side includes which
|
|
|
|
## aren't appropriate outside of winehq.com.
|
|
|
|
##
|
|
|
|
## Use the special website stylesheet
|
|
|
|
export WINEDOC_STYLESHEET=../winehq.dsl
|
|
|
|
|
|
|
|
## Create four-book SHTML tarball
|
|
|
|
echo "./db2html-winehq wine-user.sgml"
|
|
|
|
./db2html-winehq wine-user.sgml
|
|
|
|
echo "./db2html-winehq wine-devel.sgml"
|
|
|
|
./db2html-winehq wine-devel.sgml
|
|
|
|
echo "./db2html-winehq winelib-user.sgml"
|
|
|
|
./db2html-winehq winelib-user.sgml
|
|
|
|
echo "./db2html-winehq wine-pkg.sgml"
|
|
|
|
./db2html-winehq wine-pkg.sgml
|
|
|
|
tar czf winehq-shtml.tgz wine-user wine-devel winelib-user wine-pkg
|
2001-11-25 00:51:36 +00:00
|
|
|
cp winehq-shtml.tgz "$WWWDIR"
|
2001-01-19 20:58:37 +00:00
|
|
|
|