Page MenuHomeSoftware Heritage

ln-sphinx-subprojects
No OneTemporary

ln-sphinx-subprojects

#!/bin/bash
set -e
create_links () {
mkdir -p sources
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
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
done
}
if [ "$1" = "--remove" ] ; then
remove_links
else
create_links
fi

File Metadata

Mime Type
text/x-shellscript
Expires
Thu, Apr 17, 7:59 AM (4 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3270283

Event Timeline