From: Axel S. <as...@us...> - 2005-02-13 16:26:07
|
Update of /cvsroot/gtk2hs/gtk2hs/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21286/tools Modified Files: checkDirs.sh Log Message: Make compile on Windows against Gtk 2.6.1. All functions that pass filenames were redefined to a name that ends in _utf8. Added preprocessor magic to circumvent this. Furthermore added --subsystem windows as a linker flag whenever the gtk package is used during linking. This prevents a console window from opening. Index: checkDirs.sh =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/tools/checkDirs.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- checkDirs.sh 28 Nov 2004 22:03:21 -0000 1.2 +++ checkDirs.sh 13 Feb 2005 16:25:58 -0000 1.3 @@ -4,20 +4,22 @@ # Usage: # ./checkDirs.sh {-I<dir1> | -L<dir2> | <flag>} # +if test -z "$SED"; then SED=sed; fi; +if test -z "$GREP"; then GREP=grep; fi; RES=; for FLAG in $@; do case $FLAG in - -L*) DIR=`echo $FLAG | sed "s/-L//"`; + -L*) DIR=`echo $FLAG | $SED "s/-L//"`; if test -d $DIR; then - if test -z "`echo $LDFLAGS | grep -e $FLAG`"; then + if test -z "`echo $LDFLAGS | $GREP -e $FLAG`"; then RES="$RES $FLAG"; fi; fi;; - -I*) DIR=`echo $FLAG | sed "s/-I//"`; + -I*) DIR=`echo $FLAG | $SED "s/-I//"`; if test -d $DIR; then - if test -z "`echo $CFLAGS | grep -e $FLAG`"; then + if test -z "`echo $CFLAGS | $GREP -e $FLAG`"; then RES="$RES $FLAG"; fi; fi;; - *) if test -z "`echo $CFLAGS $LDFLAGS | grep -e $FLAG`"; then + *) if test -z "`echo $CFLAGS $LDFLAGS | $GREP -e $FLAG`"; then RES="$RES $FLAG"; fi;; esac; done; |