diff options
Diffstat (limited to 'src/others/build_g3d.lua')
-rwxr-xr-x | src/others/build_g3d.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/others/build_g3d.lua b/src/others/build_g3d.lua new file mode 100755 index 0000000..4c0c875 --- /dev/null +++ b/src/others/build_g3d.lua | |||
@@ -0,0 +1,19 @@ | |||
1 | #!/usr/bin/env luajit | ||
2 | |||
3 | local dir = ... | ||
4 | |||
5 | if 'nil' == type(dir) then | ||
6 | local build, err = loadfile('../../build.lua') | ||
7 | if build then | ||
8 | setfenv(build, getfenv(2)) | ||
9 | build(2) | ||
10 | else | ||
11 | print("ERROR - " .. err) | ||
12 | end | ||
13 | dir = workingDir | ||
14 | end | ||
15 | |||
16 | runCommand('libg3d', 'mimesh/libg3d-0.0.8', 'make clean') | ||
17 | runCommand(nil, 'mimesh/libg3d-0.0.8', './configure && make') | ||
18 | runCommand('g3dviewer', 'mimesh/g3dviewer-0.2.99.4', './configure && make') | ||
19 | runCommand(nil, 'mimesh/g3dviewer-0.2.99.4', 'make clean') | ||