mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 01:09:25 +00:00
Meta: Add run-local.sh
This allows one to set their desired parameters for run.sh without the need to set them in every terminal session or add it to the user account shell files. If a run-local.sh file exists at the repository root and is executable, it will be sourced. The file can contain any variables that are expected to be set in run.sh.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -23,6 +23,7 @@ compile_commands.json
|
|||||||
.clangd
|
.clangd
|
||||||
.idea/
|
.idea/
|
||||||
cmake-build-debug/
|
cmake-build-debug/
|
||||||
|
run-local.sh
|
||||||
sync-local.sh
|
sync-local.sh
|
||||||
.vim/
|
.vim/
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,12 @@ die() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(dirname "${0}")"
|
||||||
|
|
||||||
|
# https://www.shellcheck.net/wiki/SC1090 No need to shellcheck private config.
|
||||||
|
# shellcheck source=/dev/null
|
||||||
|
[ -x "$SCRIPT_DIR/../run-local.sh" ] && . "$SCRIPT_DIR/../run-local.sh"
|
||||||
|
|
||||||
#SERENITY_PACKET_LOGGING_ARG="-object filter-dump,id=hue,netdev=breh,file=e1000.pcap"
|
#SERENITY_PACKET_LOGGING_ARG="-object filter-dump,id=hue,netdev=breh,file=e1000.pcap"
|
||||||
|
|
||||||
KVM_SUPPORT="0"
|
KVM_SUPPORT="0"
|
||||||
@@ -26,8 +32,6 @@ if [ "$(uname)" = "Darwin" ] && [ "$(uname -m)" = "x86_64" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SCRIPT_DIR="$(dirname "${0}")"
|
|
||||||
|
|
||||||
# Prepend the toolchain qemu directory so we pick up QEMU from there
|
# Prepend the toolchain qemu directory so we pick up QEMU from there
|
||||||
PATH="$SCRIPT_DIR/../Toolchain/Local/qemu/bin:$PATH"
|
PATH="$SCRIPT_DIR/../Toolchain/Local/qemu/bin:$PATH"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user