diff --git a/packaging/win32/dist-impl.sh b/packaging/win32/dist-impl.sh index 78d2c3a84d..c7f06402e3 100755 --- a/packaging/win32/dist-impl.sh +++ b/packaging/win32/dist-impl.sh @@ -46,10 +46,14 @@ Please set AQBANKING_WITH_QT to yes and rerun install.sh first." _INSTALL_UDIR=`unix_path $INSTALL_DIR` _INNO_UDIR=`unix_path $INNO_DIR` _WEBKIT_UDIR=`unix_path $WEBKIT_DIR` - _ISOCODES_UDIR=`unix_path $ISOCODES_DIR` + _ISOCODES_UDIR=`unix_path $ISOCODES_DIR` + _MINGW_WFSDIR=`win_fs_path $MINGW_DIR` add_to_env $_UNZIP_UDIR/bin PATH # unzip add_to_env $_GNOME_UDIR/bin PATH # gconftool-2 add_to_env $_EXETYPE_UDIR/bin PATH # exetype + + PID=$$ + configure_msys "$PID" "$_MINGW_WFSDIR" } function dist_regex() { diff --git a/packaging/win32/dist.sh b/packaging/win32/dist.sh index 863677fb26..7f26067593 100755 --- a/packaging/win32/dist.sh +++ b/packaging/win32/dist.sh @@ -43,6 +43,9 @@ for step in "${steps[@]}" ; do eval $step done +setup Restore MSYS +restore_msys "$PID" + qpopd diff --git a/packaging/win32/functions.sh b/packaging/win32/functions.sh index 043bb19456..7bd37ca0c4 100644 --- a/packaging/win32/functions.sh +++ b/packaging/win32/functions.sh @@ -201,6 +201,24 @@ function dos2unix() { perl -pi.bak -e"s!\\r\\n\$!\\n!" $@ } +function configure_msys() { + # Make sure msys will be using this mingw + SUFFIX=$1 + _MINGW_WFSDIR=$2 + echo "configuring msys to use this mingw. suffix=$SUFFIX, _MINGW_WFSDIR=$_MINGW_WFSDIR" + cp /etc/fstab /etc/fstab.$SUFFIX + sed '\,/mingw$, d' /etc/fstab > tmp + echo "$_MINGW_WFSDIR /mingw" >> tmp + mv tmp /etc/fstab +} + +function restore_msys() { + SUFFIX=$1 + echo "resetting msys to use original mingw." + rm /etc/fstab + mv /etc/fstab.$SUFFIX /etc/fstab +} + ### Local Variables: *** ### mode: shell-script *** ### sh-basic-offset: 4 *** diff --git a/packaging/win32/install-impl.sh b/packaging/win32/install-impl.sh index cb5bebca2f..2a9c4cf88a 100755 --- a/packaging/win32/install-impl.sh +++ b/packaging/win32/install-impl.sh @@ -45,6 +45,9 @@ function inst_prepare() { set_env "" PKG_CONFIG_PATH # registered export PKG_CONFIG_LIBDIR="" # not registered fi + + # Save pid for use in temporary files + _PID=$$ } function check_m4_version_ok() { @@ -114,7 +117,7 @@ function inst_mingw() { if quiet test_for_mingw then - echo "mingw already installed. skipping." + echo "mingw already installed." else mkdir -p $_MINGW_UDIR if [ "$CROSS_COMPILE" != "yes" ]; then @@ -136,6 +139,8 @@ function inst_mingw() { fi quiet test_for_mingw || die "mingw not installed correctly" fi + + configure_msys "$_PID" "$_MINGW_WFSDIR" } function inst_unzip() { diff --git a/packaging/win32/install.sh b/packaging/win32/install.sh index 9280535c93..56179ca364 100644 --- a/packaging/win32/install.sh +++ b/packaging/win32/install.sh @@ -119,6 +119,10 @@ eval_now for step in "${steps[@]}" ; do eval $step done + +setup Restore MSYS +restore_msys "$_PID" + qpopd echo -n "Build Finished at " diff --git a/packaging/win32/weekly_build.bat b/packaging/win32/weekly_build.bat new file mode 100644 index 0000000000..6ca3e7155b --- /dev/null +++ b/packaging/win32/weekly_build.bat @@ -0,0 +1,6 @@ +rem This is the Windows Batch Script for the daily builds. +rem It simply calls the actual MSYS Shell script to perform +rem the daily build and then the tag builds. + +cd c:\soft-2.4\packaging +c:\msys\1.0\bin\sh.exe --login c:\soft-2.4\packaging\daily_build.sh