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

create working group pages with proper hyperlinks

parent 1a6c73fd
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,11 @@ 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
echo "# $fullname" > ./build/$wg.md
# append research to staffiles
echo -e "\n$title\n" >> ./build/$wg.md
sed -i "s;### Working Groups:\(.*\)$wg\(.*\);### Working Groups:\1\[$fullname\]($wg.html)\2;g" $build_dir/$filename
#sed -i "s;### Working Groups:\(.*\)$wg\(.*\);### Working Groups:\1\[$fullname\]($baseurl/forschung/$wg)\2;g" $build_dir/$filename #uncomment this line for linking the mat.tuhh.de webpage
done
......@@ -37,6 +41,6 @@ do
# replace name in index.md file
sed -i "s;$name;\[$fullname\]($name.html);g" $build_dir/$filename
sed -i "s;$name;\[$fullname\]($name.html);g" $build_dir/$filename
#sed -i "s;$name;\[$fullname\]($baseurl/home/$name);g" $build_dir/$filename #uncomment this line for linking the mat.tuhh.de webpage
done
......@@ -24,12 +24,17 @@
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
echo "# $fullname" > ./build/$wg.md
# append research to staffiles
echo -e "\n$title\n" >> ./build/$wg.md
sed -i "s;### Working Groups:\(.*\)$wg\(.*\);### Working Groups:\1\[$fullname\]($wg.html)\2;g" $build_dir/$filename
#sed -i "s;### Working Groups:\(.*\)$wg\(.*\);### Working Groups:\1\[$fullname\]($baseurl/forschung/$wg)\2;g" $build_dir/$filename #uncomment this line for linking the mat.tuhh.de webpage
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`
echo "Found the following keys: " $namelist
for name in $namelist
do
# pipeline to get full name of staff-member from mat-homepage
......
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