Code

Minor fix in NP-VERSION-GEN
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Wed, 26 Nov 2008 10:55:57 +0000 (05:55 -0500)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Wed, 26 Nov 2008 10:55:57 +0000 (05:55 -0500)
NP-VERSION-GEN

index f963e6373d0a4141f0ddd060d35cf92c7a40ddf9..10428b3e545ed212b1415c1f5aa8eca668c9289a 100755 (executable)
@@ -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}'`
-               test "`svn status 2>/dev/null | grep '^[AMD]' | wc -l`" = 0 ||
-               VN="$VN-dirty" ;;
+               SS=`svn status 2>/dev/null | grep '^[AMD]' | wc -l`
+               test "$SS" = 0 ||       VN="$VN-dirty" ;;
        esac
 then
        VN=`echo "trunk.$VN" | sed -e 's/-/./g'`;