aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/build_g3d.lua
blob: 4c0c8752732dca7f4086a6da86caec8ae7baeefe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env luajit

local dir = ...

if 'nil' == type(dir) then
  local build, err = loadfile('../../build.lua')
  if build then
    setfenv(build, getfenv(2))
    build(2)
  else
    print("ERROR - " .. err)
  end
  dir = workingDir
end

runCommand('libg3d', 'mimesh/libg3d-0.0.8', 'make clean')
runCommand(nil, 'mimesh/libg3d-0.0.8', './configure && make')
runCommand('g3dviewer', 'mimesh/g3dviewer-0.2.99.4', './configure && make')
runCommand(nil, 'mimesh/g3dviewer-0.2.99.4', 'make clean')