2023-01-03 11:50:46 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
divider() {
|
|
|
|
N=10
|
|
|
|
for ((i = 0; i < N; ++i)); do
|
|
|
|
printf '-'
|
|
|
|
done
|
|
|
|
}
|
|
|
|
show-version() {
|
|
|
|
printf "%s %s %s\n" "$(divider)" "$1" "$(divider)"
|
2023-11-28 12:43:42 -06:00
|
|
|
which "$1" 2>/dev/null
|
2023-01-03 11:50:46 -06:00
|
|
|
"$@"
|
|
|
|
}
|
|
|
|
|
2023-11-28 12:43:42 -06:00
|
|
|
show-dir() {
|
|
|
|
dir="$( dirname -- "$( readlink -f -- "$0"; )"; )"/../"$1"
|
|
|
|
printf "%s\n%s\n%s\n" "$(divider)" "$(tree "$dir")" "$(divider)"
|
|
|
|
}
|
|
|
|
|
2023-01-03 11:50:46 -06:00
|
|
|
show-version python --version
|
|
|
|
show-version fontforge --version
|
|
|
|
show-version docker --version
|
|
|
|
show-version uname -a
|
2023-11-28 12:43:42 -06:00
|
|
|
show-dir MonoLisa
|
|
|
|
show-dir patched
|