Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 377c7c5c86
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 54 lines (30 sloc) 1.198 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#!/bin/bash

cd "$(dirname "$0")"
distribdir="$(pwd)"

source functions.sh

olxdir="$(guess_olx_dir)"

if ! is_olx_dir "$olxdir"; then
echo "Cannot find openlierox dir. Fix functions.sh."
exit 1
fi


#vcbuild="/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/vcpackages/vcbuild.exe"

#cd "${olxdir}/build/msvc 2005"

export WINEPREFIX=/mnt/data3b/msvc2k5wine
windowsbase=$WINEPREFIX/drive_c

vcbuildpath="$windowsbase/Program Files/Microsoft Visual Studio 8/VC/vcpackages"
#vcbuildpath="/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/vcpackages"


#vcbuild="$vcbuildpath/vcbuild.exe"

#cp "$vcbuildpath/1031/"* "$vcbuildpath/"

# seems this is needed, otherwise error
#regsvr32 /s "$vcbuildpath/vcprojectengine.dll"

# we need this translation to absolute pathname so that Win CMD can handle it correctly
cd "$olxdir"
olxdir="$(pwd)"

# start the build itself
cd "$vcbuildpath"
#"${distribdir}/win32_runbuild.bat" "$(cygpath -a -w "$olxdir")/build/msvc 2005/Game.vcproj"


wineconsole "${distribdir}/win32_runbuild.bat" "$(winepath -w "$olxdir")/build/msvc 2005/Game.vcproj"



# if the task is still running, kill it
#sleep 1
#taskkill /F /IM cl.exe 2>/dev/null

echo "** ready"


Something went wrong with that request. Please try again.