Reviewed by Adam Roben.
https://bugs.webkit.org/show_bug.cgi?id=27323
Correctly parse command output, even when the line endings are not LF,
so that we don't create an autoversion.h that MSVC chokes on.
* win/tools/scripts/auto-version.sh:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@46424
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2009-07-27 Peter Kasting <pkasting@google.com>
+
+ Reviewed by Adam Roben.
+
+ https://bugs.webkit.org/show_bug.cgi?id=27323
+ Correctly parse command output, even when the line endings are not LF,
+ so that we don't create an autoversion.h that MSVC chokes on.
+
+ * win/tools/scripts/auto-version.sh:
+
2009-07-13 Brent Fulgham <bfulgham@webkit.org>
Reviewed by Adam Roben.
fi
if [ "$RC_PROJECTSOURCEVERSION" == "" ]; then
- PROPOSEDVERSION=$(cat "$SRCPATH/VERSION")
+ PROPOSEDVERSION=`cat $SRCPATH/VERSION | sed -r 's/(.*\S+)\s*$/\1/'`
else
PROPOSEDVERSION="$RC_PROJECTSOURCEVERSION"
fi
if [ "$BLDVARIANTVERSION" == "" ]; then
BLDVARIANTVERSION=0
fi
-SVNOPENSOURCEREVISION=`svn info | grep '^Revision' | sed 's/^Revision: \(.*\)/\1/'`
+SVNOPENSOURCEREVISION=`svn info | grep '^Revision' | sed -r 's/^Revision: (.*\S+)\s*$/\1/'`
BLDNMBR="$PROPOSEDVERSION"
BLDNMBRSHORT="$BLDNMBR"