diff --git a/docs/bin/ln-sphinx-subprojects b/docs/bin/ln-sphinx-subprojects index 0f1d4eb..91d806f 100755 --- a/docs/bin/ln-sphinx-subprojects +++ b/docs/bin/ln-sphinx-subprojects @@ -1,30 +1,30 @@ #!/bin/bash set -e create_links () { for pymodule in $(cd ../../ && bin/ls-py-modules) ; do - if [ "$pymodule" = 'swh-docs' ] ; then - continue - fi - if [ ! -e "$pymodule" -a -d "../../${pymodule}/docs" ] ; then - ln -s "../../${pymodule}/docs" "$pymodule" - fi + if [ "$pymodule" = 'swh-docs' ] ; then + continue + fi + if [ ! -e "$pymodule" -a -d "../../${pymodule}/docs" ] ; then + ln -s "../../${pymodule}/docs" "$pymodule" + fi done } remove_links () { for pymodule in $(cd ../../ && bin/ls-py-modules) ; do - if [ "$pymodule" = 'swh-docs' ] ; then - continue - fi - if [ -L "$pymodule" ] ; then - rm "$pymodule" - fi + if [ "$pymodule" = 'swh-docs' ] ; then + continue + fi + if [ -L "$pymodule" ] ; then + rm "$pymodule" + fi done } if [ "$1" = "--remove" ] ; then remove_links else create_links fi