Permalink
Browse files

Fix mingw32 cross-build on a git no-branch checkout. Fixes #698446.

  • Loading branch information...
HinTak authored and vargaz committed Aug 28, 2011
1 parent 1e91022 commit 96e0c59371816a3fa28afc8b5ad392ac21b17e0a
Showing with 2 additions and 2 deletions.
  1. +2 −2 build-mingw32.sh
View
@@ -57,11 +57,11 @@ function setup ()
CROSS_DLL_DIR="$CROSS_DIR/bin"
PATH=$CROSS_BIN_DIR:$PATH
- MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'`
+ MONO_VERSION=`grep AM_INIT_AUTOMAKE configure.in | cut -d ',' -f 2|tr -d '\)'|tr -d '\('`
if [ -d ./.git ]; then
MONO_GIT_COMMIT="`git log -1 --format=format:%t`"
- MONO_GIT_BRANCH="`git branch|grep '\*'|cut -d ' ' -f 2`"
+ MONO_GIT_BRANCH="`git branch|grep '\*'|cut -d ' ' -f 2|tr -d '\)'|tr -d '\('`"
MONO_RELEASE="$MONO_VERSION-$MONO_GIT_BRANCH-$MONO_GIT_COMMIT"
else
MONO_RELEASE="$MONO_VERSION"

0 comments on commit 96e0c59

Please sign in to comment.