19 lines
463 B
Bash
Executable File
19 lines
463 B
Bash
Executable File
#!/usr/bin/env bash
|
|
export LUNA_ROOT=$(realpath $(dirname $0)/..)
|
|
export LUNA_BASE=$LUNA_ROOT/base
|
|
export PATH=$LUNA_ROOT/toolchain/x86-64-luna/bin:$LUNA_ROOT/toolchain/dist:$PATH
|
|
|
|
export CC=x86_64-luna-gcc
|
|
export CXX=x86_64-luna-g++
|
|
export LD=x86_64-luna-ld
|
|
export AR=x86_64-luna-ar
|
|
export ASM=nasm
|
|
export STRIP=x86_64-luna-strip
|
|
|
|
if ! command -v filter-lines >/dev/null
|
|
then unset filter-lines
|
|
fi
|
|
filter-lines()
|
|
{
|
|
sed $'s|^|\x1b[32m('"$1/$2"$')\x1b[39m |'
|
|
} |