Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROSA - Formally Proven Schedulability Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RT-PROOFS
PROSA - Formally Proven Schedulability Analysis
Commits
57c1ba7a
Commit
57c1ba7a
authored
5 years ago
by
Björn Brandenburg
Browse files
Options
Downloads
Patches
Plain Diff
deliberately order TOC of generated documentation
parent
d0a2d4ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!77
Superficial Results/Analysis Cleanup and Documentation Improvements
Pipeline
#22244
passed with warnings
5 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
create_makefile.sh
+1
-1
1 addition, 1 deletion
create_makefile.sh
scripts/module-toc-order.py
+41
-0
41 additions, 0 deletions
scripts/module-toc-order.py
with
42 additions
and
1 deletion
create_makefile.sh
+
1
−
1
View file @
57c1ba7a
...
...
@@ -23,7 +23,7 @@ done
FIND_OPTS+
=(
-print
)
# Compile all relevant *.v files
coq_makefile
-f
_CoqProject
$(
find
"
${
FIND_OPTS
[@]
}
"
)
-o
Makefile
coq_makefile
-f
_CoqProject
$(
find
"
${
FIND_OPTS
[@]
}
"
| scripts/module-toc-order.py
)
-o
Makefile
# Patch HTML target to switch out color, and
# so that it parses comments and has links to ssreflect.
...
...
This diff is collapsed.
Click to expand it.
scripts/module-toc-order.py
0 → 100755
+
41
−
0
View file @
57c1ba7a
#!/usr/bin/env python3
import
os
import
sys
MODULE_ORDER
=
[
'
behavior.time
'
,
'
behavior.job
'
,
'
behavior.schedule
'
,
'
behavior.service
'
,
'
behavior.arrival_sequence
'
,
'
behavior.ready
'
,
'
behavior
'
,
'
model.processor
'
,
'
model.readiness
'
,
'
model.preemption
'
,
'
model.task
'
,
'
model.priority
'
,
'
model.schedule
'
,
'
model
'
,
'
results
'
,
'
analysis
'
,
'
classic
'
,
'
util
'
,
]
def
modorder
(
fname
):
modname
=
fname
.
replace
(
'
./
'
,
''
).
replace
(
'
.v
'
,
''
).
replace
(
'
/
'
,
'
.
'
)
for
i
,
prefix
in
enumerate
(
MODULE_ORDER
):
if
modname
.
startswith
(
prefix
):
return
(
i
,
modname
)
return
(
len
(
MODULE_ORDER
),
modname
)
def
main
():
lines
=
sys
.
stdin
.
readlines
()
for
l
in
sorted
(
lines
,
key
=
modorder
):
print
(
l
,
end
=
''
)
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment