summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf3d216)
raw | patch | inline | side by side (parent: bf3d216)
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Wed, 26 Nov 2008 11:04:04 +0000 (06:04 -0500) | ||
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Wed, 26 Nov 2008 11:04:04 +0000 (06:04 -0500) |
NP-VERSION-GEN | patch | blob | history |
diff --git a/NP-VERSION-GEN b/NP-VERSION-GEN
index 10428b3e545ed212b1415c1f5aa8eca668c9289a..657ef3c07c50dbb4798fc9aad85a573e38f62809 100755 (executable)
--- a/NP-VERSION-GEN
+++ b/NP-VERSION-GEN
*$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'`;