Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
00dd15a9
Commit
00dd15a9
authored
5 years ago
by
Bernd Flemisch
Browse files
Options
Downloads
Patches
Plain Diff
[doc] add a script that appends Markdown and C++ files
parent
efe54bfd
No related branches found
No related tags found
1 merge request
!1683
Automatically create READMEs for examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/doc/merge_cpp_and_md.sh
+20
-0
20 additions, 0 deletions
bin/doc/merge_cpp_and_md.sh
with
20 additions
and
0 deletions
bin/doc/merge_cpp_and_md.sh
0 → 100644
+
20
−
0
View file @
00dd15a9
#!/bin/sh
# The arguments should be names of Markdown and/or C++ files.
# The script loops through all arguments. If a Markdown file is encountered,
# its content is forwarded to stdout. For another file, a Markdown header
# stating the filename is printed and the script cpp_to_md.sh is applied.
for
filename
in
"
$@
"
do
if
[[
${
filename
:
-3
}
==
".md"
]]
;
then
cat
$filename
else
echo
""
echo
""
echo
"## The file
\`
$filename
\`
"
echo
""
bash cpp_to_md.sh
$filename
echo
""
fi
done
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