Minor fix in NP-VERSION-GEN

This commit is contained in:
Thomas Guyot-Sionnest 2008-11-26 05:55:57 -05:00
parent 9bcfa9cded
commit bf3d216085

View file

@ -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'`;