From 3d11a714dd6e9a47bdcc59750cefc6f8fd4a2a9f Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 28 Mar 2012 16:07:58 +0000 Subject: [PATCH] Ajustes para funcionamento em windows --- bootstrap.sh | 11 +++++++---- pw3270.cbp | 301 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------ 2 files changed, 158 insertions(+), 154 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 08d1af3..0d8b001 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -18,11 +18,14 @@ if test -d ".svn" ; then if test -x "$SVN" ; then - TEMPFILE=$(mktemp) + TEMPFILE=.bootstrap.tmp LANG="EN_US" - $SVN info > $TEMPFILE 2> /dev/null - PACKAGE_REVISION=$(cat $TEMPFILE | grep "^Revision: " | cut -d" " -f2) - PACKAGE_SOURCE=$(cat $TEMPFILE | grep "^URL: " | cut -d" " -f2) + "$SVN" info > $TEMPFILE 2>&1 + + if [ "$?" == "0" ]; then + PACKAGE_REVISION=$(cat $TEMPFILE | grep "^Revision: " | cut -d" " -f2) + PACKAGE_SOURCE=$(cat $TEMPFILE | grep "^URL: " | cut -d" " -f2) + fi rm -f $TEMPFILE fi diff --git a/pw3270.cbp b/pw3270.cbp index ffcac9f..75c449d 100644 --- a/pw3270.cbp +++ b/pw3270.cbp @@ -8,8 +8,8 @@