Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 40 lines (29 sloc) 1.12 KB
#!/usr/bin/env bash
# Load System Configuration, if it exists.
[[ -s "/etc/bdsmrc" ]] && . /etc/bdsmrc
# Load User Configuration, if it exists.
[[ -s "$HOME/.bdsmrc" ]] && . "$HOME/.bdsmrc"
# The default prefix is /usr/local,
# this should be set to where BDSM is installed to in /etc/bdsmrc
prefix_path="${prefix_path:-/usr/local}"
if [[ "$prefix_path" = "$HOME" ]] ; then
{ : "${bdsm_path:="${prefix_path}bdsm"}"; }
else
{ : "${bdsm_path:="${prefix_path}/bdsm"}"; }
fi
export install_path="${bdsm_path}" # Path to install everything to
export bdsm_path="$PWD" # Path to load everything from
export modules_path="${bdsm_path}/modules"
# Load DSL and initialize BDSM core itself, manually.
source "${PWD}/modules/bash/core/dsl"
mkdir -p log tmp
# Load fundamental Module DSL's
for module in logging trace filesystem core ; do
for file in dsl initialize ; do
source "${PWD}/modules/bash/${module}/${file}"
done
done
source_files "${PWD}/extensions/core/modules/bash/dsl" \
"${PWD}/extensions/core/modules/bash/initialize" \
"${PWD}/extensions/core/modules/bash/cli" \
"${PWD}/extensions/core/bin/install"
Jump to Line
Something went wrong with that request. Please try again.