2023-11-23 13:22:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
build_dir=${script_dir}/Build
|
|
|
|
code_dir=${script_dir}
|
|
|
|
|
|
|
|
# Bootstrap a version
|
|
|
|
git show -s --date=format:%Y-%m-%d --format=%cd HEAD> feely_pona_version.txt
|
|
|
|
git rev-parse --short=8 HEAD>> feely_pona_version.txt
|
|
|
|
git rev-list --count HEAD>> feely_pona_version.txt
|
|
|
|
|
|
|
|
# Bootstrap the build program
|
|
|
|
mkdir --parents ${build_dir}
|
|
|
|
pushd ${build_dir}
|
|
|
|
g++ -g -Wall -o feely_pona_build ${code_dir}/feely_pona_build.cpp -lm
|
|
|
|
cp --force feely_pona_build ${code_dir}
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Run the build program
|
2023-11-25 13:52:50 +00:00
|
|
|
${code_dir}/feely_pona_build $@
|