Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9749547
D1232.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
715 B
Subscribers
None
D1232.diff
View Options
diff --git a/docs/bin/ln-sphinx-subprojects b/docs/bin/ln-sphinx-subprojects
--- a/docs/bin/ln-sphinx-subprojects
+++ b/docs/bin/ln-sphinx-subprojects
@@ -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 @@
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
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 24, 5:56 PM (4 d, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3227348
Attached To
D1232: [swh-docs] bin/ln-sphinx-subprojects: Use rsync to copy .py sources only
Event Timeline
Log In to Comment