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

add further commandline argument to preproc staff

parent 596ede0d
No related branches found
No related tags found
3 merge requests!84Draft: Resolve "create tests for new commandline arguments",!83Draft: Resolve "deliver css and javascript to www3",!77Resolve "tuhh-deployment"
......@@ -10,11 +10,19 @@ if [ $# -lt 2 ]
then
RESEARCH_BUILD=`pwd`"/build"
echo -e "No building directory was specified."
elif [ $# -lt 3 ]
then
RESEARCH_BUILD="$2"
RESEARCH_STAFF=$RESEARCH_BUILD
echo -e "No staff directory was specified."
else
RESEARCH_BUILD="$2"
RESEARCH_STAFF="$3"
fi
mkdir -p $RESEARCH_BUILD
echo -e "Building into directory $RESEARCH_BUILD ..."
mkdir -p $RESEARCH_STAFF
echo -e "Building into directory $RESEARCH_BUILD ..." # perform (inplace) replacement of keys
echo -e "Building into staff-directory $RESEARCH_STAFF ..." # only prepend titles with links
filename=$(basename -- "$1")
baseurl='https://www.mat.tuhh.de'
......@@ -63,7 +71,7 @@ do
if [ $# -gt 1 ]
then
# append research to staffile
echo -e "\n$title\n" >> $RESEARCH_BUILD/$name.md
echo -e "\n$title\n" >> $RESEARCH_STAFF/$name.md
fi
done
......
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