BASH_SOURCE

This commit is contained in:
2024-10-15 07:14:06 -05:00
parent f6dd3a1c1d
commit e68ce5a74f
2 changed files with 12 additions and 0 deletions

View File

@@ -11,6 +11,12 @@ usage() {
echo -e "\tO n: build at optimization n (1, 2, 3)" echo -e "\tO n: build at optimization n (1, 2, 3)"
} }
# global path variables
SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
BUILDER_DIR="$(dirname "$SCRIPT_DIR")"
cd "$BUILDER_DIR" || exit
# build with psy as default # build with psy as default
export BUILD_PSY="true" export BUILD_PSY="true"
GREP_FILTER="av1" GREP_FILTER="av1"

View File

@@ -1,5 +1,11 @@
#!/bin/bash #!/bin/bash
# global path variables
SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
BUILDER_DIR="$(dirname "$SCRIPT_DIR")"
cd "$BUILDER_DIR" || exit
git stash git stash
git stash drop git stash drop
git pull git pull