Skip to content
Snippets Groups Projects
Commit 1ab91453 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

bin/ln-sphinx-subprojects: Use rsync to copy .py sources only

parent 4f820a6a
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
set -e
create_links () {
mkdir sources/
mkdir -p sources
for pymodule in $(cd ../../ && bin/ls-py-modules) ; do
if [ "$pymodule" = 'swh-docs' ] ; then
continue
......@@ -11,7 +11,7 @@ create_links () {
ln -s "../../${pymodule}/docs" "$pymodule"
fi
if [ -d "../../${pymodule}/swh" ] ; then
cp -fr --link "../../${pymodule}/swh/" "sources/"
rsync -a --include='*.py' --include='*/' --exclude='*' --prune-empty-dirs "../../${pymodule}/swh" "sources/"
fi
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment