'test -e' is not supported on Solaris, replace with '-f' or '-d'.
diff --git a/documentation/db2html-winehq b/documentation/db2html-winehq
index fb9d32c..d810e69 100755
--- a/documentation/db2html-winehq
+++ b/documentation/db2html-winehq
@@ -12,12 +12,12 @@
## $LINUXDIST holds the name of the distribution
## $JADETAG adds "/#html" to the stylesheet-specification in the Jade
## command line (see comments below), if necessary for that dist.
-if [ -e /etc/debian_version ]; then
+if [ -f /etc/debian_version ]; then
LINUXDIST="Debian"
JADETAG=\#html
fi
-if [ -e /etc/redhat_release ]; then
+if [ -f /etc/redhat_release ]; then
LINUXDIST="Redhat"
JADETAG=
fi
diff --git a/documentation/make_winehq b/documentation/make_winehq
index c2bb276..67711e9 100755
--- a/documentation/make_winehq
+++ b/documentation/make_winehq
@@ -20,7 +20,7 @@
WWWDIR=www.winehq.com
## Want to put this into a sub-directory for easier maintenance
-if [ -e "$WWWDIR" ]; then
+if [ -d "$WWWDIR" -o -f "$WWWDIR" ]; then
rm -rf "$WWWDIR.old"
mv "$WWWDIR" "$WWWDIR".old
fi
diff --git a/documentation/winelib-toolkit.sgml b/documentation/winelib-toolkit.sgml
index b09c036..952bb97 100644
--- a/documentation/winelib-toolkit.sgml
+++ b/documentation/winelib-toolkit.sgml
@@ -392,7 +392,7 @@
hello.so: $(hello_SPEC_SRCS:.spec=.spec.o) $(hello_OBJS) $(hello_DEP
ENDS)
$(LDSHARED) $(LDDLLFLAGS) -o $@ $(hello_OBJS) $(hello_SPEC_SRCS:.spec=.spec.o) $(hello_LIBRARY_PATH) $(hello_LIBRARIES:%=-l%) $(DLL_LINK) $(LIBS)
- test -e hello || $(LN_S) $(WINE) hello
+ test -f hello || $(LN_S) $(WINE) hello
</programlisting>
<para>
Then come additional directives to link the executables and