We're building up some tools; let's print them out in env.sh

This commit is contained in:
Jordan Bancino 2023-02-17 18:26:08 +00:00
parent 3faee8b432
commit d81e8f3a32

View file

@ -1,10 +1,17 @@
#!/usr/bin/env sh
find tools/bin -type f | while IFS= read -r tool; do
echo "Telodendria Development Environment"
echo "-----------------------------------"
echo
echo "Tools available:"
find tools/bin -type f -not -path '*/CVS/*' | while IFS= read -r tool; do
echo "- $(basename $tool)"
chmod +x "$tool"
done
if which makewhatis 2>&1 > /dev/null; then
makewhatis "$(pwd)/man"
fi
export PATH="$(pwd)/tools/bin:$PATH"
export MANPATH="$(pwd)/man:$MANPATH"