Avoid potential problems with filenames containing spaces.
diff --git a/documentation/make_winehq b/documentation/make_winehq
index a1428f2..c2bb276 100755
--- a/documentation/make_winehq
+++ b/documentation/make_winehq
@@ -20,11 +20,11 @@
WWWDIR=www.winehq.com
## Want to put this into a sub-directory for easier maintenance
-if [ -e $WWWDIR ]; then
- rm -rf $WWWDIR.old
- mv $WWWDIR $WWWDIR.old
+if [ -e "$WWWDIR" ]; then
+ rm -rf "$WWWDIR.old"
+ mv "$WWWDIR" "$WWWDIR".old
fi
-mkdir $WWWDIR
+mkdir "$WWWDIR"
## Create four-book HTML tarball
echo "./db2html-winehq wine-user.sgml"
@@ -36,13 +36,13 @@
echo "./db2html-winehq wine-pkg.sgml"
./db2html-winehq wine-pkg.sgml
tar czf winedoc-html.tgz wine-user wine-devel winelib-user wine-pkg
-cp winedoc-html.tgz $WWWDIR
+cp winedoc-html.tgz "$WWWDIR"
## Create one-book HTML tarball
echo "./db2html-winehq wine-doc.sgml"
./db2html-winehq wine-doc.sgml
tar czf wine-set-html.tgz wine-doc
-cp wine-set-html.tgz $WWWDIR
+cp wine-set-html.tgz "$WWWDIR"
## Create PostScript tarball
echo "db2ps -d ./print.dsl wine-user.sgml"
@@ -54,7 +54,7 @@
echo "db2ps -d ./print.dsl wine-pkg.sgml"
db2ps -d ./print.dsl wine-pkg.sgml > /dev/null 2>&1
tar czf winedoc-ps.tgz wine-user.ps wine-devel.ps winelib-user.ps wine-pkg.ps
-cp winedoc-ps.tgz $WWWDIR
+cp winedoc-ps.tgz "$WWWDIR"
## Create PDF tarball
echo "db2pdf -d ./print.dsl wine-user.sgml"
@@ -66,12 +66,12 @@
echo "db2pdf -d ./print.dsl wine-pkg.sgml"
db2pdf -d ./print.dsl wine-pkg.sgml > /dev/null 2>&1
tar czf winedoc-pdf.tgz wine-user.pdf wine-devel.pdf winelib-user.pdf wine-pkg.pdf
-cp winedoc-pdf.tgz $WWWDIR
+cp winedoc-pdf.tgz "$WWWDIR"
## Create SGML tarball
echo "Creating SGML package..."
tar czf winedoc-sgml.tgz *.sgml *.dsl *.ent db2html-winehq
-cp winedoc-sgml.tgz $WWWDIR
+cp winedoc-sgml.tgz "$WWWDIR"
## Done creating downloadable tarballs for users. Now we want to
## create a tarball of SHTML in a slightly different form, for the
@@ -91,5 +91,5 @@
echo "./db2html-winehq wine-pkg.sgml"
./db2html-winehq wine-pkg.sgml
tar czf winehq-shtml.tgz wine-user wine-devel winelib-user wine-pkg
-cp winehq-shtml.tgz $WWWDIR
+cp winehq-shtml.tgz "$WWWDIR"