db2html fix

François Gouget fgouget at codeweavers.com
Mon Jan 14 16:56:37 CST 2002


   This is wrong:

   if [ -a /etc/debian_version ]

   '-a' means 'and', so it should obviously have two arguments and
FreeBSD's /bin/sh really does not like it.


Changelog:

   François Gouget <fgouget at codeweavers.com>

 * documentation/db2html-winehq

   Fixed incorrect use of 'test -a' (for FreeBSD)


-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: documentation/db2html-winehq
===================================================================
RCS file: /home/wine/wine/documentation/db2html-winehq,v
retrieving revision 1.3
diff -u -r1.3 db2html-winehq
--- documentation/db2html-winehq	2001/11/25 00:51:36	1.3
+++ documentation/db2html-winehq	2002/01/14 17:38:57
@@ -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 [ -a /etc/debian_version ]; then
+if [ -e /etc/debian_version ]; then
   LINUXDIST="Debian"
   JADETAG=\#html
 fi
 
-if [ -a /etc/redhat_release ]; then
+if [ -e /etc/redhat_release ]; then
   LINUXDIST="Redhat"
   JADETAG=
 fi


More information about the wine-patches mailing list