diff --git a/src/view/wxUI.h b/src/view/wxUI.h index 0a4342a..fab5882 100644 --- a/src/view/wxUI.h +++ b/src/view/wxUI.h @@ -34,8 +34,10 @@ #include "grid/wxGridCellButtonRenderer.h" #include "grid/wxGridCellButtonEditor.h" +#ifdef WIN32 #undef _ #define _(s) wxString(wxGetTranslation(s)) +#endif class KissCount; class ButtonPanel; diff --git a/tools/package.sh b/tools/package.sh index b0685a5..3649c25 100755 --- a/tools/package.sh +++ b/tools/package.sh @@ -1,7 +1,7 @@ #!/bin/bash DATE=`date +%d.%m.%Y` -ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1` +[ -z "$ARCH" ] && ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1` VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2` DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}" FILE="$DIR.tar.bz2" diff --git a/tools/package_win32.sh b/tools/package_win32.sh index 4cb2d02..2aba7d2 100755 --- a/tools/package_win32.sh +++ b/tools/package_win32.sh @@ -1,7 +1,7 @@ #!/bin/bash DATE=`date +%d.%m.%Y` -ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1` +[ -z "$ARCH" ] && ARCH=`${PREFIX}gcc -dumpmachine | cut -d- -f1` VERSION=`cat src/controller/KissCount.h | grep APP_VERSION | cut -d\" -f2` DIR="KissCount_build_${VERSION}_${DATE}_${ARCH}" FILE="$DIR.tar.bz2"