Skip to content
Snippets Groups Projects
Commit cf18c101 authored by Fabian Nuraddin Alexander Gabel's avatar Fabian Nuraddin Alexander Gabel :speech_balloon:
Browse files

add stdout progress to preprocessing step

parent 031023b4
No related branches found
No related tags found
No related merge requests found
Pipeline #104046 failed
......@@ -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 $errstr;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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment