2022-07-30 13:37:08 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2023-02-17 18:26:08 +00:00
|
|
|
echo "Telodendria Development Environment"
|
|
|
|
echo "-----------------------------------"
|
|
|
|
echo
|
|
|
|
echo "Tools available:"
|
2023-03-08 03:30:36 +00:00
|
|
|
find tools/bin -type f | grep -v CVS | grep -v '#' | while IFS= read -r tool; do
|
2023-03-09 02:49:14 +00:00
|
|
|
echo "* $(basename $tool)"
|
2022-07-30 13:37:08 +00:00
|
|
|
chmod +x "$tool"
|
|
|
|
done
|
2023-03-09 00:06:15 +00:00
|
|
|
|
|
|
|
missing=0
|
|
|
|
|
|
|
|
for tool in $(find tools/src -type f -name '*.c'); do
|
|
|
|
base=$(basename "$tool" .c)
|
2023-03-09 02:49:14 +00:00
|
|
|
printf "* $base"
|
2023-03-09 00:06:15 +00:00
|
|
|
if [ ! -f "build/tools/$base" ]; then
|
|
|
|
printf ' (missing)'
|
|
|
|
missing=1
|
|
|
|
fi
|
|
|
|
echo
|
2023-03-08 03:30:36 +00:00
|
|
|
done
|
2022-07-30 13:37:08 +00:00
|
|
|
|
2023-03-09 00:06:15 +00:00
|
|
|
if [ "$missing" -eq "1" ]; then
|
|
|
|
echo
|
|
|
|
echo "Warning: Some tools are missing, which means others"
|
|
|
|
echo "may not work properly. Build missing tools with td."
|
|
|
|
fi
|
|
|
|
|
2023-02-17 18:26:08 +00:00
|
|
|
if which makewhatis 2>&1 > /dev/null; then
|
|
|
|
makewhatis "$(pwd)/man"
|
|
|
|
fi
|
2022-09-30 23:11:44 +00:00
|
|
|
|
2023-05-14 19:35:23 +00:00
|
|
|
export LD_LIBRARY_PATH="$(pwd)/Cytoplasm/out/lib"
|
|
|
|
export PATH="$(pwd)/tools/bin:$(pwd)/build/tools:$(pwd)/Cytoplasm/out/bin:$PATH"
|
|
|
|
export MANPATH="$(pwd)/man:$(pwd)/build/man:$(pwd)/Cytoplasm/out/man:$MANPATH"
|
2023-04-25 18:37:25 +00:00
|
|
|
|
|
|
|
if [ "$(uname)" = "OpenBSD" ]; then
|
|
|
|
# Other platforms use different MALLOC_OPTIONS
|
|
|
|
# flags.
|
|
|
|
export MALLOC_OPTIONS="CFGJSU"
|
|
|
|
fi
|
2023-04-30 01:47:27 +00:00
|
|
|
|
|
|
|
export TELODENDRIA_ENV=1
|
|
|
|
|