add more scripts and move them to a new scripts directory, also add a shell environment to make dealing with this project more convenient
parent
6ead6d81d2
commit
a80a6a26d8
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ -z "$CXX" ]; then
|
if [ -z "$CXX" ]; then
|
||||||
CXX="c++"
|
CXX="c++"
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
rm -rv ./bin
|
rm -rv ./bin
|
||||||
mkdir -v ./bin
|
mkdir -v ./bin
|
||||||
set -v
|
set -v
|
|
@ -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
|
Loading…
Reference in New Issue