[scripts] Minor updates.

This commit is contained in:
Ciprian Dorin Craciun 2022-02-28 19:42:57 +02:00
parent dfbcb2e6bd
commit 08095560a3

View file

@ -25,10 +25,16 @@
test "${#}" -eq 0 test "${#}" -eq 0
if test ! -d ./.outputs ; then if test ! -d ./.outputs ; then
_outputs_store="${TMPDIR:-/tmp}/go--${UID}--${RANDOM}-${RANDOM}-${RANDOM}-${RANDOM}" if test -h ./.outputs ; then
_outputs_store="$( exec -- readlink -f -- ./.outputs )"
else
_outputs_store="${TMPDIR:-/tmp}/workspace--${UID}--${RANDOM}-${RANDOM}-${RANDOM}-${RANDOM}"
fi
mkdir -- "${_outputs_store}" mkdir -- "${_outputs_store}"
_outputs_store="$( exec -- readlink -e -- "${_outputs_store}" )" if test ! -e ./.outputs ; then
ln -s -f -T -- "${_outputs_store}" ./.outputs _outputs_store="$( exec -- readlink -e -- "${_outputs_store}" )"
ln -s -f -T -- "${_outputs_store}" ./.outputs
fi
fi fi
_outputs="$( exec -- readlink -e -- ./.outputs )" _outputs="$( exec -- readlink -e -- ./.outputs )"
@ -102,7 +108,7 @@
<< workspace / initialize / python << workspace / initialize / python
test "${#}" -eq 0 test "${#}" -eq 0
if test -d ./.python ; then if test -d ./.outputs/python ; then
exit -- 0 exit -- 0
fi fi
@ -126,8 +132,6 @@
./.outputs/python/bin/pip install --compile -- docutils ./.outputs/python/bin/pip install --compile -- docutils
./.outputs/python/bin/pip install --compile -- restview ./.outputs/python/bin/pip install --compile -- restview
ln -s -f -T -- ./.outputs/python ./.python
!! !!
@ -169,7 +173,7 @@
<< documentation / readme / server << documentation / readme / server
test "${#}" -eq 0 test "${#}" -eq 0
exec -- env -i -- ./.python/bin/restview --no-browser --listen 127.33.237.174:8080 --allowed-hosts '*' -- ./readme.rst exec -- env -i -- ./.outputs/python/bin/restview --no-browser --listen 127.33.237.174:8080 --allowed-hosts '*' -- ./readme.rst
!! !!