Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7450587
ln-sphinx-subprojects
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
662 B
Subscribers
None
ln-sphinx-subprojects
View Options
#!/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
Details
Attached
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
Attached To
rDDOC Development documentation
Event Timeline
Log In to Comment