From db305b81c771a9d864852e73244374c715cd8f46 Mon Sep 17 00:00:00 2001
From: Thomas Guyot-Sionnest <dermoth@aei.ca>
Date: Wed, 26 Nov 2008 06:04:04 -0500
Subject: Fix it for good now


diff --git a/NP-VERSION-GEN b/NP-VERSION-GEN
index 10428b3..657ef3c 100755
--- a/NP-VERSION-GEN
+++ b/NP-VERSION-GEN
@@ -29,8 +29,8 @@ elif test -d $SRC_ROOT/.svn -o -f $SRC_ROOT/.svn &&
 	*$LF*) (exit 1) ;;
 	Revision:*)
 		VN=`echo $VN | awk '{print $NF}'`
-		SS=`svn status 2>/dev/null | grep '^[AMD]' | wc -l`
-		test "$SS" = 0 ||	VN="$VN-dirty" ;;
+		test "`svn status 2>/dev/null | grep '^[AMD]' | wc -l | tr -d ' '`" = 0 ||
+		VN="$VN-dirty" ;;
 	esac
 then
 	VN=`echo "trunk.$VN" | sed -e 's/-/./g'`;
-- 
cgit v0.10-9-g596f

