https://bugs.webkit.org/show_bug.cgi?id=27323
authorpkasting@chromium.org <pkasting@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Aug 2009 23:47:09 +0000 (23:47 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Aug 2009 23:47:09 +0000 (23:47 +0000)
Even more line ending-stripping for auto-version.sh, based on output
provided by Jessie Berlin.

Reviewed by George Staikos.

* win/tools/scripts/auto-version.sh:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@47012 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitLibraries/ChangeLog
WebKitLibraries/win/tools/scripts/auto-version.sh

index 63aba88..66f1e38 100644 (file)
@@ -1,3 +1,13 @@
+2009-08-10  Peter Kasting  <pkasting@google.com>
+
+        Reviewed by George Staikos.
+
+        https://bugs.webkit.org/show_bug.cgi?id=27323
+        Even more line ending-stripping for auto-version.sh, based on output
+        provided by Jessie Berlin.
+
+        * win/tools/scripts/auto-version.sh:
+
 2009-08-10  Brent Fulgham  <bfulgham@webkit.org>
 
         Reviewed by Adam Roben.
index f9d4efb..06f7667 100755 (executable)
@@ -60,7 +60,9 @@ BLDNMBRSHORT="$BLDNMBR"
 
 if [ "$RC_PROJECTSOURCEVERSION" == "" ]; then
     BLDNMBRSHORT="$BLDNMBRSHORT+"
-    BLDNMBR="$BLDNMBRSHORT $(whoami) - $(date) - r$SVNOPENSOURCEREVISION"
+    BLDUSERNAME=`echo "$(whoami)" | sed -r 's/(.*\S+)\s*$/\1/'`
+    BLDDATE=`echo "$(date)" | sed -r 's/(.*\S+)\s*$/\1/'`
+    BLDNMBR="$BLDNMBRSHORT $BLDUSERNAME - $BLDDATE - r$SVNOPENSOURCEREVISION"
 fi
 
 cat > "$VERSIONFILE" <<EOF