Blame c++/vector/build.sh

2fb9fd
#!/bin/bash
2fb9fd
2fb9fd
set -e
2fb9fd
2fb9fd
function call() {
2fb9fd
    echo "$@"
2fb9fd
    "$@"
2fb9fd
}
2fb9fd
2fb9fd
2fb9fd
FLAGS="-Wall -std=c++11"
2fb9fd
if [ "$1" = "debug" ]; then
2fb9fd
    FLAGS="$FLAGS -g -O0"
2fb9fd
else
2fb9fd
    FLAGS="$FLAGS -O3"
2fb9fd
fi
2fb9fd
2fb9fd
call c++ $FLAGS `pkg-config --cflags --libs gtkmm-3.0` *.cpp -o vector