check for cvs in the version properly
authorDana Jansens <danakj@orodu.net>
Sat, 11 Jan 2003 04:54:36 +0000 (04:54 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 11 Jan 2003 04:54:36 +0000 (04:54 +0000)
m4/openbox.m4

index e5b91ff..6c56f76 100644 (file)
@@ -12,7 +12,7 @@ AC_DEFUN([OB_DEBUG],
   [DEBUG=$enableval],[])
 
   # cvs builds are always debug
-  test "${VERSION#cvs}" != "$VERSION" && DEBUG = "yes"
+  test "${VERSION%*cvs}" != "$VERSION" && DEBUG="yes"
   
   if test "$DEBUG" = "yes"; then
     AC_MSG_RESULT([debug])