File: get-deps.sh

package info (click to toggle)
luabind 0.9.1%2Bgit20150823%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,692 kB
  • sloc: cpp: 14,884; makefile: 204; sh: 41; python: 38; ansic: 11
file content (20 lines) | stat: -rwxr-xr-x 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -ex
LUAV="$1"

curl -o lua-$LUAV.tar.gz https://www.lua.org/ftp/lua-$LUAV.tar.gz 
tar xzf lua-$LUAV.tar.gz
cd lua-$LUAV
if [ "$2" = "cxx" ]; then
    if [ -d cxx ]; then
        rm -r cxx
    fi
    mkdir cxx
    make clean
    make linux CC=g++ MYCFLAGS="-DLUA_USE_APICHECK -g"
    mv src/lua src/luac src/liblua.a cxx/
    cp src/lua.h src/luaconf.h src/lauxlib.h src/lualib.h cxx/
fi
make clean
make linux MYCFLAGS="-DLUA_USE_APICHECK -g"