Sha256: 7c06622dd62f5037cc9efe0c2d09a347cc1e1e1e50d690081bc866263ede7cee

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

#!/bin/zsh

# Compiles the wax stdlib into one file
lua "$PROJECT_DIR/wax/lib/build-scripts/luac.lua" wax wax.dat "$PROJECT_DIR/wax/lib/stdlib/" "$PROJECT_DIR/wax/lib/stdlib/init.lua" -L "$PROJECT_DIR/wax/lib/stdlib"/**/*.lua

# Dumps the compiled file into a byte array, then it places this into the source code
cat > "$PROJECT_DIR/wax/lib/wax_stdlib.h" <<EOF
// DO NOT MODIFY
// This is auto generated, it contains a compiled version of the wax stdlib
#define WAX_STDLIB {$(hexdump -v -e '1/1 "%d,"' wax.dat)}
EOF

# clean up
rm wax.dat

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
candle-0.0.7 lib/candle/generators/lua/wax/lib/build-scripts/compile-stdlib.sh
candle-0.0.6 lib/candle/generators/lua/wax/lib/build-scripts/compile-stdlib.sh
candle-0.0.4 lib/candle/generators/lua/wax/lib/build-scripts/compile-stdlib.sh
candle-0.0.3 lib/candle/generators/lua/wax/lib/build-scripts/compile-stdlib.sh
candle-0.0.2 lib/candle/generators/lua/wax/lib/build-scripts/compile-stdlib.sh
candle-0.0.1 lib/candle/generators/lua/wax/lib/build-scripts/compile-stdlib.sh