Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
research-topics-mat-tuhh
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Nuraddin Alexander Gabel
research-topics-mat-tuhh
Commits
cf18c101
Commit
cf18c101
authored
3 years ago
by
Fabian Nuraddin Alexander Gabel
Browse files
Options
Downloads
Patches
Plain Diff
add stdout progress to preprocessing step
parent
031023b4
No related branches found
No related tags found
No related merge requests found
Pipeline
#104046
failed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
preprocMd.sh
+7
-1
7 additions, 1 deletion
preprocMd.sh
with
7 additions
and
1 deletion
preprocMd.sh
+
7
−
1
View file @
cf18c101
...
...
@@ -8,16 +8,20 @@
#make output copy
mkdir
-p
build
echo
"Preprocessing
$filename
..."
cp
$original
$build_dir
/
$filename
#replace working group
echo
"Replacing working group keys..."
for
wg
in
{
aa,cm,dm,nm,st
}
do
fullname
=
`
wget
-qO-
$baseurl
/forschung/
$wg
|
grep
h1 |
sed
-e
"s/<h1>
\s
*
\(
.*
\)
<
\/
h1>.*
$/
\1
/g"
|
sed
-e
's/^[ \t]*//'
`
echo
"Found working group
$fullname
"
sed
-i
"s;### Working Groups:
\(
.*
\)
$wg
\(
.*
\)
;### Working Groups:
\1\[
$fullname
\]
(
$baseurl
/forschung/
$wg
)
\2
;g"
$build_dir
/
$filename
done
echo
"Replacing collaborator keys..."
namelist
=
`
grep
-h
-i
-m
1
-r
"###
\s
*Collaborators (MAT):"
$build_dir
/
$filename
|
sed
-e
's/^###\s*Collaborators (MAT):\s*//I'
-e
's/\s*,\s*/\n/g'
|
sort
-u
`
for
name
in
$namelist
do
...
...
@@ -37,8 +41,10 @@
-e
"s;fbuenger
$errstr
;Dr. Florian Bünger;g"
\
-e
"s;hvoss
$errstr
;Prof. Dr. Heinrich Voß;g"
\
-e
"s;fboesch
$errstr
;Dipl. Ing. Frank Bösch;g"
\
-e
"s;sgoetschel
$errst
;Dr. Sebastian Götschel;g"
`
-e
"s;sgoetschel
$errst
r
;Dr. Sebastian Götschel;g"
`
fi
echo
"Found collaborator
$fullname
"
# replace name in .md file
sed
-i
"s;
$name
;
\[
$fullname
\]
(
$baseurl
/home/
$name
);g"
$build_dir
/
$filename
...
...
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