mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Adapt the windows build system to deal with swapping mingw installations on one build machine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20452 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0880482649
commit
ec6b423148
@ -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() {
|
||||
|
@ -43,6 +43,9 @@ for step in "${steps[@]}" ; do
|
||||
eval $step
|
||||
done
|
||||
|
||||
setup Restore MSYS
|
||||
restore_msys "$PID"
|
||||
|
||||
qpopd
|
||||
|
||||
|
||||
|
@ -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 ***
|
||||
|
@ -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() {
|
||||
|
@ -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 "
|
||||
|
6
packaging/win32/weekly_build.bat
Normal file
6
packaging/win32/weekly_build.bat
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user