Make sure the C locale gets used everywhere -- Joerg Mayer <[email protected]> We are stuck with technology when what we really want is just stuff that works. Some say that should read Microsoft instead of technology.
Make sure we don't get translated output
Signed-Off-By: Joerg Mayer <[email protected]> Index: util/getrevision.sh =================================================================== --- util/getrevision.sh (revision 1715) +++ util/getrevision.sh (working copy) @@ -24,21 +24,24 @@ EXIT_SUCCESS=0 EXIT_FAILURE=1 +# Make sure we don't get translated output +export LC_ALL=C + svn_revision() { - LC_ALL=C svnversion -cn . 2>/dev/null | \ + svnversion -cn . 2>/dev/null | \ sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/" | \ grep "[0-9]" || - LC_ALL=C svn info . 2>/dev/null | \ + svn info . 2>/dev/null | \ awk '/^Revision:/ {print $$2 }' | \ grep "[0-9]" || - LC_ALL=C git svn info . 2>/dev/null | \ + git svn info . 2>/dev/null | \ awk '/^Revision:/ {print $$2 }' | \ grep "[0-9]" || echo '' } svn_url() { - echo $(LC_ALL=C svn info 2>/dev/null | + echo $(svn info 2>/dev/null | grep URL: | sed 's/.*URL:[[:blank:]]*//' | grep ^. @@ -108,7 +111,7 @@ git_url() { # Only the first line of `git remote' is considered. - echo $(LC_ALL=C git remote show origin 2>/dev/null | + echo $(git remote show origin 2>/dev/null | grep 'Fetch URL:' | sed 's/.*URL:[[:blank:]]*//' | grep ^.
_______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
