From f99a99358e4c840ca3335a0809e58d55769bea7b Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 20 Oct 2009 01:55:08 +0200 Subject: Initial import. --- compilation | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100755 compilation (limited to 'compilation') diff --git a/compilation b/compilation new file mode 100755 index 0000000..7448983 --- /dev/null +++ b/compilation @@ -0,0 +1,129 @@ +#!/bin/sh + +# +# This script is meant to be run under debian unstable, with the mingw +# package installed, as well as a bunch of other packages, including but +# not limited to, mysql-client-dev, imagemagick-dev, and oracle-occi +# + +if [ "$USER" == "pixel" ] || [ "$USER" == "nnoble" ] ; then + prefix="ssh+git://pixel@" + path="/pub/repo.git" +else + prefix="http://" + path="" +fi + +tar xvfz Mesa-7.4.4-osmesa-linux-precomp.tar.gz +tar xvfz tinyxml-src.tar.gz + +git clone ${prefix}git.grumpycoder.net${path}/Baltisot +git clone ${prefix}git.grumpycoder.net${path}/mogltk +git clone ${prefix}git.grumpycoder.net${path}/lua-interface +git clone ${prefix}git.grumpycoder.net${path}/lua-modules +git clone ${prefix}git.grumpycoder.net${path}/lua-modules-cd-tool +git clone ${prefix}git.grumpycoder.net${path}/PSX-Bundle + +cd Baltisot/lib/ +./genloadlib.sh > loadlualibs.ii +cd ../.. + +mkdir -p lua-interface-distrib/linux + + +############################### +## prepare win32 compilation ## +## skip if you don't want it ## +############################### +cp -r lua-interface lua-interface-win32 +cp -r lua-interface lua-interface-win32-light +ln -s ../lua-interface-win32/lua-interface.a lua-interface +cp -r lua-modules lua-modules-win32 +cp -r lua-modules-cd-tool lua-modules-cd-tool-win32 +############################### + + +cd lua-interface +colormake luac || exit -1 +colormake || exit -1 +./lua-interface -e 'print "Hello, world!"' +cp lua-interface luac ../lua-interface-distrib/linux +cd .. + +cd lua-modules +cp ../lua-interface/luac . +cp ../lua-interface/lua-interface.so . +colormake || exit -1 +cp *.so ../lua-interface-distrib/linux +cd .. + +cd lua-modules-cd-tool +cp ../lua-interface/luac . +cp ../lua-interface/lua-interface.so . +colormake || exit -1 +cp *.so ../lua-interface-distrib/linux +cd .. + + +######################################## +## linux version done - next is win32 ## +######################################## + +tar xvfz Mesa-7.0.3-osmesa-win32-precomp.tar.gz +tar xvfz ftgl-win32-precomp.tar.gz +tar xvfz freetype-win32-precomp.tar.gz +tar xvfz mysql-5.0.51b-win32-precomp.tar.gz +tar xvfz pthreads-w32-2-8-0-release-win32-precomp.tar.gz +tar xvfz gnuwin32-digested-tar.gz +gunzip libreadline-static.a.gz + +mkdir -p lua-interface-distrib/win32 +mkdir -p lua-interface-distrib/win32-light + +cd lua-interface-win32 +make -f Makefile.mingw32 || exit -1 +cp *.exe *.dll ../lua-interface-distrib/win32 +cd .. + +cd lua-modules-win32 +cp ../lua-interface/luac . +make -f Makefile.mingw32 || exit -1 +cp *.dll ../lua-interface-distrib/win32 +cd .. + +cd lua-modules-cd-tool-win32 +cp ../lua-interface/luac . +make -f Makefile.mingw32 || exit -1 +cp *.dll ../lua-interface-distrib/win32 +cd .. + +cd lua-interface-win32-light +cp ../lua-interface/luac . +make -f Makefile.mingw32 lua-interface-light.exe || exit -1 +cp *.exe *.dll ../lua-interface-distrib/win32-light +cd .. + +cp win32-dlls/* lua-interface-distrib/win32 + +cp PSX-Bundle/COPYING Baltisot/AUTHORS lua-interface-distrib/linux +cp PSX-Bundle/COPYING Baltisot/AUTHORS lua-interface-distrib/win32 +cp PSX-Bundle/COPYING Baltisot/AUTHORS lua-interface-distrib/win32-light +cp lua-interface-distrib/win32/luacd.dll lua-interface-distrib/win32-light +cp lua-interface-distrib/win32/luapsx.dll lua-interface-distrib/win32-light +cp lua-interface-distrib/win32/pthreadGC2.dll lua-interface-distrib/win32-light +cp lua-interface-distrib/win32/ucl1.dll lua-interface-distrib/win32-light +cp lua-interface-distrib/win32/zlib1.dll lua-interface-distrib/win32-light + +cd lua-interface-distrib + +mv linux lua-interface +zip -r lua-interface-linux.zip lua-interface +mv lua-interface linux + +mv win32 lua-interface +zip -r lua-interface-win32.zip lua-interface +mv lua-interface win32 + +mv win32-light lua-interface-light +zip -r lua-interface-win32-light.zip lua-interface-light +mv lua-interface-light win32-light -- cgit v1.2.3