add more scripts and move them to a new scripts directory, also add a shell environment to make dealing with this project more convenient

BodgeMaster-unfinished
BodgeMaster 2022-06-27 07:35:04 +02:00
parent 6ead6d81d2
commit a80a6a26d8
5 changed files with 17 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ -z "$CXX" ]; then
CXX="c++"

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
rm -rv ./bin
mkdir -v ./bin
set -v

0
scripts/clean_dependencies.sh Executable file
View File

0
scripts/setup_project.sh Executable file
View File

14
setupenv.bashrc Normal file
View File

@ -0,0 +1,14 @@
PROJECT_BASE_DIR="$( cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 ; pwd -P )"
alias build="pushd \"$PROJECT_BASE_DIR\"; scripts/build.sh; popd"
alias clean="pushd \"$PROJECT_BASE_DIR\"; scripts/clean.sh; popd"
alias clean_dependencies="pushd \"$PROJECT_BASE_DIR\"; scripts/clean_dependencies.sh; popd"
alias setup_project="pushd \"$PROJECT_BASE_DIR\"; scripts/setup_project.sh; popd"
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="$PROJECT_BASE_DIR"/bin/lib
else
export LD_LIBRARY_PATH="$PROJECT_BASE_DIR"/bin/lib:"LD_LIBRARY_PATH"
fi
unset PROJECT_BASE_DIR