Commit db2d6a46 authored by Fabian Nuraddin Alexander Gabel's avatar Fabian Nuraddin Alexander Gabel 💬
Browse files

Merge branch '1022-commandline-args-for-preprocessor' into 'dev'

Resolve "commandline args for preprocessor"

Closes #1022

See merge request !138
parents aab61338 29d977c6
Pipeline #116710 passed with stages
in 30 seconds
......@@ -14,3 +14,6 @@ public/*
*.swp
!*ref_*
*tmp*
*.gif
testing/*/*
www3-dev
......@@ -12,7 +12,7 @@ stages:
default:
before_script:
- RESEARCH_ROOT=`pwd`; export RESEARCH_ROOT;
- RESEARCH_ROOT=`pwd`; export RESEARCH_ROOT; mkdir -p log
#############################################################
# BEGIN STAGE: docker-update
......@@ -35,7 +35,7 @@ update-aplpine-ssh:
changes:
- docker/alpine-ssh.Dockerfile
update-ubuntu-pandoc:
update-pandoc-bash:
stage: docker-update
allow_failure: false
image:
......@@ -44,13 +44,13 @@ update-ubuntu-pandoc:
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/ubuntu-pandoc.Dockerfile --destination $CI_REGISTRY_IMAGE/ubuntu-pandoc:latest
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/pandoc-bash.Dockerfile --destination $CI_REGISTRY_IMAGE/pandoc-bash:latest
only:
refs:
- branches
- merge_requests
changes:
- docker/ubuntu-pandoc.Dockerfile
- docker/pandoc-bash.Dockerfile
update-alpine-httpd-ssi:
stage: docker-update
......@@ -76,38 +76,20 @@ update-alpine-httpd-ssi:
# BEGIN STAGE: testing
#############################################################
# index building routine
test-build_index:
stage: testing
allow_failure: false
image: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/alpine-ssh
script:
- $RESEARCH_ROOT/bin/test_build_index.sh
after_script:
- cat log/build_index.log
artifacts:
paths:
- log/build_index.log
expire_in: 1 week
only:
refs:
- branches
- merge_requests
changes:
- bin/*
- testing/*
- static/index.md
# always test the preprocessor with unit tests
test-preprocessor:
stage: testing
allow_failure: true #only temporarily
allow_failure: false
image: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/alpine-ssh
script:
- $RESEARCH_ROOT/bin/test_preprocessor.sh
- $RESEARCH_ROOT/bin/test_preproc_wg.sh
- $RESEARCH_ROOT/bin/test_preproc_staff.sh
- $RESEARCH_ROOT/bin/test_preproc_topic.sh
artifacts:
paths:
- testing/test_preprocessor/*.log
- log/test_preproc_wg.log
- log/test_preproc_staff.log
- log/test_preproc_topic.log
expire_in: 1 week
only:
refs:
......@@ -145,32 +127,10 @@ test-create-html:
name: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/pandoc-bash:latest
entrypoint: [""]
script:
- mkdir -p log
- rm -rf log/test_create_html.log
- $RESEARCH_ROOT/bin/test_create_html.sh
- $RESEARCH_ROOT/bin/test_run_pandoc.sh
artifacts:
paths:
- log/create_html.log
only:
refs:
- branches
- merge_requests
changes:
- bin/*
- testing/*
# test that html is included correctly
test-replace_marker:
stage: testing
allow_failure: false
image: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/ubuntu-pandoc
script:
- mkdir -p log
- rm -rf log/test_replace_marker.log
- $RESEARCH_ROOT/bin/test_replace_marker.sh
artifacts:
paths:
- log/test_replace_marker.log
- log/test_run_pandoc.log
only:
refs:
- branches
......@@ -185,12 +145,10 @@ test-replace_ssi_marker:
allow_failure: false
image: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/alpine-ssh
script:
- mkdir -p log
- rm -rf log/replace_ssi_marker.log
- $RESEARCH_ROOT/bin/test_replace_ssi_marker.sh
- $RESEARCH_ROOT/bin/test_postproc_topic.sh
artifacts:
paths:
- log/replace_ssi_marker.log
- log/postproc_topic.log
only:
refs:
- branches
......@@ -200,42 +158,20 @@ test-replace_ssi_marker:
- testing/*
- static/ssi/*
# test that h2 is substituted by div
test-postproc-snippets:
stage: testing
allow_failure: false
image:
name: eltenedor/ubuntu-pandoc:latest
script:
- mkdir -p log
- rm -rf log/test_postproc_snippets.log
- RESEARCH_ROOT=`pwd`; export RESEARCH_ROOT;
- $RESEARCH_ROOT/bin/test_postproc_snippets.sh
artifacts:
paths:
- log/postproc_snippets.log
only:
refs:
- branches
- merge_requests
changes:
- bin/*
- testing/*
# test building standalone static webpage
test-build-standalone:
test-build-webpage:
stage: testing
allow_failure: true #as this job is deprecated
image: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/ubuntu-pandoc:latest
allow_failure: true
image:
name: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/pandoc-bash:latest
entrypoint: [""]
script:
- mkdir -p log
- rm -rf log/build_standalone.log
- $RESEARCH_ROOT/bin/test_build_standalone.sh
after_script:
- cat log/build_standalone.log
- rm -rf log/build_webpage.log
- $RESEARCH_ROOT/bin/test_build_webpage.sh
artifacts:
paths:
- log/build_standalone.log
- log/build_build_webpage.log
only:
refs:
- branches
......@@ -258,7 +194,7 @@ build-www3-dev:
name: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/pandoc-bash:latest
entrypoint: [""]
script:
- $RESEARCH_ROOT/bin/build_tuhh.sh build-www3-dev "${REVIEW_BASE_DIR}${CI_COMMIT_REF_NAME}/${CI_COMMIT_SHORT_SHA}" "/${CI_COMMIT_REF_NAME}/${CI_COMMIT_SHORT_SHA}"
- $RESEARCH_ROOT/bin/build_webpage.sh -b build-www3-dev -p ${REVIEW_BASE_DIR} -l /${CI_COMMIT_REF_NAME}/${CI_COMMIT_SHORT_SHA}
artifacts:
paths:
- build-www3-dev
......@@ -274,7 +210,7 @@ build-www3:
name: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/pandoc-bash:latest
entrypoint: [""]
script:
- $RESEARCH_ROOT/bin/build_tuhh.sh build-www3 "${BASE_DIR}"
- $RESEARCH_ROOT/bin/build_tuhh.sh -b build-www3 -p "${BASE_DIR}"
artifacts:
paths:
- build-www3
......@@ -290,7 +226,7 @@ build-tuhh:
name: collaborating.tuhh.de:5005/cfg0846/research-topics-mat-tuhh/pandoc-bash:latest
entrypoint: [""]
script:
- $RESEARCH_ROOT/bin/build_tuhh.sh build-tuhh
- $RESEARCH_ROOT/bin/build_webpage.sh
artifacts:
paths:
- build-tuhh
......
#!/bin/bash
cd $RESEARCH_ROOT/build
cp -r $RESEARCH_ROOT/css $RESEARCH_ROOT/build
for f in *.md
do
pandoc --quiet --standalone $f -o "${f%.md}".html \
--mathjax \
-c css/base.css \
-c css/extra.css \
-c "css/print.css" \
-c "css/superfish.css" \
-c "css/superfish-vertical.css" \
-c "css/base_mode.css"
done
#!/bin/bash
# build the static webpage locally
BUILD_DIR=$RESEARCH_ROOT/build
DEPLOY_DIR=$RESEARCH_ROOT
BIN_DIR=$RESEARCH_ROOT/bin
# clean up directories
rm -rf $BUILD_DIR
rm -rf $DEPLOY_DIR/{.public,public}
#build Index
$BIN_DIR/preproc_topics.sh
$BIN_DIR/buildPandoc.sh
#make public directory and copy files
mkdir -p $DEPLOY_DIR/.public
cp -r $RESEARCH_ROOT/build/*.html $DEPLOY_DIR/.public
cp -r $RESEARCH_ROOT/img $DEPLOY_DIR/.public
cp -r $RESEARCH_ROOT/css $DEPLOY_DIR/.public
mv $DEPLOY_DIR/.public $DEPLOY_DIR/public
echo "Done. Visit file://$DEPLOY_DIR/public/index.html ."
......@@ -5,7 +5,6 @@
# [README] input file to be processed
# [RESEARCH_BUILD] delivery folder
# Check commandline arguments
if [ $# -lt 2 ]
then
......@@ -26,7 +25,6 @@ else
GIT_REF=$CI_COMMIT_REF_NAME
fi
sed -e "s;{DATE};`date --iso-8601=seconds`;" \
-e "s;{HOST};`whoami`@`hostname`;" \
-e "s;{GIT_REF};$GIT_REF;" \
......
#!/bin/bash
# building the a standalone static webpage
RESEARCH_BIN=$RESEARCH_ROOT/bin
RESEARCH_STATIC=$RESEARCH_ROOT/static
# Check commandline arguments
if [ $# -lt 1 ]
then
RESEARCH_DEPLOY=`pwd`
RESEARCH_TOPICS=`pwd`"/topics"
RESEARCH_BUILD=`pwd`"/build"
echo -e "No deploy directory was specified."
# clean up directories
rm -rf $RESEARCH_BUILD
rm -rf $RESEARCH_DEPLOY/{.public,public}
elif [ $# -lt 2 ]
then
RESEARCH_BUILD="$1"
RESEARCH_TOPICS=$RESEARCH_BUILD
RESEARCH_BUILD="$1/build"
echo -e "No extra topics directory was specified."
# clean up directories
rm -rf $RESEARCH_BUILD
rm -rf $RESEARCH_DEPLOY/{.public,public}
elif [ $# -lt 3 ]
then
RESEARCH_DEPLOY="$1"
RESEARCH_TOPICS="$2"
RESEARCH_BUILD="$1/build"
echo -e "No extra build directory was specified."
# clean up directories
rm -rf $RESEARCH_BUILD
rm -rf $RESEARCH_DEPLOY/{.public,public}
else
RESEARCH_DEPLOY="$1"
RESEARCH_TOPICS="$2"
RESEARCH_BUILD="$3"
fi
# prepare directories / clean-up
mkdir -p $RESEARCH_DEPLOY
mkdir -p $RESEARCH_BUILD
cp -vf $RESEARCH_TOPICS/*.md $RESEARCH_BUILD
echo -e "Deploying to $RESEARCH_DEPLOY ...;"
echo -e "Building into directory $RESEARCH_BUILD ..."
echo -e "Using .md-files from $RESEARCH_TOPICS ..."
# preprocess .md-files
echo "Preproc Topics"
$RESEARCH_BIN/preproc_topics.sh $RESEARCH_BUILD $RESEARCH_TOPICS
$RESEARCH_BIN/build_index.sh $RESEARCH_BUILD $RESEARCH_TOPICS
# build html files
echo "Creating HTML Files with pandoc"
$RESEARCH_BIN/create_html.sh $RESEARCH_BUILD
# replace markers
echo "Replacing markers"
$RESEARCH_BIN/replace_marker.sh $RESEARCH_BUILD
#make public directory and copy files
mkdir -p $RESEARCH_DEPLOY/.public
for f in $RESEARCH_BUILD/*_final.html
do
filename=$(basename -- "$f")
cp $f $RESEARCH_DEPLOY/.public/${filename%_final.html}.html
done
echo "Copying files to final destination ..."
cp -r $RESEARCH_ROOT/{img,css} $RESEARCH_DEPLOY/.public
mv -v $RESEARCH_DEPLOY/.public $RESEARCH_DEPLOY/public
echo "Done. Visit file://$RESEARCH_DEPLOY/public/index.html ."
#!/bin/bash
# build the static webpage locally
BUILD_DIR=$RESEARCH_ROOT/static/build
DEPLOY_DIR=$RESEARCH_ROOT/static
BIN_DIR=$RESEARCH_ROOT/bin
# clean up directories
rm -rf $BUILD_DIR
rm -rf $DEPLOY_DIR/{.public,public}
# preprocess .md-files
echo "Preproc Topics"
$BIN_DIR/preproc_topics.sh $RESEARCH_ROOT/static $RESEARCH_ROOT/topics
# get full TUHH staff pages ready for insertion
mkdir -p $RESEARCH_ROOT/static/build/plain
cp $RESEARCH_ROOT/static/home/*.html $RESEARCH_ROOT/static/build/plain
cp $RESEARCH_ROOT/static/forschung/*.html $RESEARCH_ROOT/static/build/plain
# build html files
echo "Run Pandoc"
$BIN_DIR/integrate_pandoc.sh
echo "Pandoc finished."
#make public directory and copy files
mkdir -p $DEPLOY_DIR/.public
for f in $BUILD_DIR/*_final.html
do
filename=$(basename -- "$f")
cp $f $DEPLOY_DIR/.public/${filename%_final.html}.html
done
cp -r $RESEARCH_ROOT/img $DEPLOY_DIR/.public
cp -r $RESEARCH_ROOT/css $DEPLOY_DIR/.public
mv $DEPLOY_DIR/.public $DEPLOY_DIR/public
echo "Done. Visit file://$DEPLOY_DIR/public/index.html ."
#!/bin/bash
# build the files for tuhh-delivery, review apps and deployment locally
#
# Structure
#
# tuhh-build/
# ├── forschung
# │ ├── aa/forschung.html
# │ ├── cm/forschung.html
# │ ├── dm/forschung.html
# │ ├── nm/forschung.html
# │ └── st/forschung.html
# ├── home
# │ ├── ataraz.html
# │ ├── cseifert.html
# │ └── ymogge.html
# └── topics
# ├── img
# │ ├── BO_BDO.jpg
# │ ├── controlimex.png
# │ └── webpage-example.png
# ├── topic.html
# └── Zemke_Hessenberg.html
#
#
# Check commandline arguments
PROJECT_PATH=""
if [ $# -lt 1 ]
then
RESEARCH_DEPLOY=$RESEARCH_ROOT/build-tuhh
PROJECT_ROOT="" #standard if webpage is deployed at root
elif [ $# -lt 2 ]
then
RESEARCH_DEPLOY=$1
PROJECT_ROOT=""
elif [ $# -lt 3 ]
then
RESEARCH_DEPLOY=$1
PROJECT_ROOT=$2
else
RESEARCH_DEPLOY=$1
PROJECT_ROOT=$2 # full path
PROJECT_PATH=$3 # path without web root
fi
echo "Deploying to $RESEARCH_DEPLOY."
echo "Using PROJECT_ROOT=$PROJECT_ROOT"
RESEARCH_BIN=$RESEARCH_ROOT/bin
RESEARCH_STATIC=$RESEARCH_ROOT/static
RESEARCH_BUILD=$RESEARCH_ROOT/build
rm -rf $RESEARCH_BUILD $RESEARCH_DEPLOY
mkdir -p $RESEARCH_BUILD $RESEARCH_DEPLOY $RESEARCH_DEPLOY/include
echo "Preprocessing Topics..."
$RESEARCH_BIN/preproc_topics.sh "$RESEARCH_BUILD" \
"$RESEARCH_ROOT/topics" \
"$RESEARCH_BUILD/home" \
"$RESEARCH_BUILD/forschung" \
"$PROJECT_ROOT" >> $RESEARCH_BUILD/build.log 2>&1
# build index files
#cp $RESEARCH_BUILD/index.md $RESEARCH_DEPLOY
$RESEARCH_BIN/build_index.sh $RESEARCH_DEPLOY/forschung/topics $RESEARCH_ROOT/topics >> $RESEARCH_BUILD/build.log 2>&1
$RESEARCH_BIN/create_html.sh $RESEARCH_DEPLOY/forschung/topics \
$RESEARCH_DEPLOY/forschung/topics \
TUHH >> $RESEARCH_BUILD/build.log 2>&1
rm $RESEARCH_DEPLOY/forschung/topics/index.md
#
$RESEARCH_BIN/build_index.sh $RESEARCH_DEPLOY $RESEARCH_ROOT/topics forschung/topics/ >> $RESEARCH_BUILD/build.log 2>&1
$RESEARCH_BIN/create_html.sh $RESEARCH_DEPLOY \
$RESEARCH_DEPLOY \
TUHH >> $RESEARCH_BUILD/build.log 2>&1
rm $RESEARCH_DEPLOY/index.md
# build html files
echo "Creating HTML Topics with pandoc..."
#topics
$RESEARCH_BIN/create_html.sh $RESEARCH_BUILD/forschung/topics \
$RESEARCH_BUILD \
TUHH >> $RESEARCH_BUILD/build.log 2>&1
# include ssi directives
echo "Inserting SSI-directives..."
$RESEARCH_BIN/replace_ssi_marker.sh $RESEARCH_DEPLOY/forschung/topics \
$RESEARCH_BUILD/forschung/topics \
$PROJECT_PATH >> $RESEARCH_BUILD/build.log 2>&1
#delete <h1> tag
$RESEARCH_BIN/postproc_topics.sh $RESEARCH_DEPLOY/forschung/topics
echo "Creating HTML Snippets for Staff..."
#staffpages
$RESEARCH_BIN/create_html.sh $RESEARCH_DEPLOY/home \
$RESEARCH_BUILD/home \
TUHH >> $RESEARCH_BUILD/build.log 2>&1
$RESEARCH_BIN/postproc_snippets.sh $RESEARCH_DEPLOY/home
# wg pages
echo "Creating HTML Snippets for WG..."
for wg in aa cm dm nm st
do
$RESEARCH_BIN/create_html.sh $RESEARCH_DEPLOY/forschung/$wg \
$RESEARCH_BUILD/forschung/$wg \
TUHH >> $RESEARCH_BUILD/build.log 2>&1
$RESEARCH_BIN/postproc_snippets.sh $RESEARCH_DEPLOY/forschung/$wg
done
# readme
echo "Creating Readme..."
$RESEARCH_BIN/build_README.sh $RESEARCH_STATIC/misc/TUHH_BUILD_README.md \
$RESEARCH_DEPLOY/ \
>> $RESEARCH_BUILD/build.log 2>&1
echo "Copying files..."
cp -r $RESEARCH_ROOT/topics/img $RESEARCH_DEPLOY/forschung/topics
cp -r $RESEARCH_STATIC/include/{css,javascript,images} $RESEARCH_DEPLOY/include
# replace {include} in html
mkdir -p $RESEARCH_DEPLOY/include/html
for f in $RESEARCH_STATIC/include/html/*.html
do
filename=$(basename -- "$f")
sed -e "s;{project_root};$PROJECT_ROOT;" $f > $RESEARCH_DEPLOY/include/html/$filename
done
cp $RESEARCH_STATIC/ssi/htaccess $RESEARCH_DEPLOY/.htaccess
# XBitHack (cf. https://httpd.apache.org/docs/current/mod/mod_include.html)
chmod +x $RESEARCH_DEPLOY/forschung/topics/*.html
chmod +x $RESEARCH_DEPLOY/include/html/*.html
echo "Done."
echo "Start apache by running the command"
echo " docker run -it --rm --name apache-server -p 8080:80 -v $RESEARCH_DEPLOY:/usr/local/apache2/htdocs/ eltenedor/alpine-www3-dev:latest"
echo "Then visit localhost:8080 in your web browser."
echo "Alternatively review file://$RESEARCH_DEPLOY/index.html in your web browser."
#!/bin/bash
############################################################
# Command line help
usage="Usage: $(basename "$0") [OPTION]...
build the files for tuhh-delivery, review apps and deployment locally.
Note: mat.tuhh.de uses WINDOWS-1252 character encoding
OPTIONs:
-h, --help show this help text and exit
-b, --build where the procesing takes place (default: '' in-place)
-d, --debug retain all intermediate files for debugging purposes
-l, --location relative location on server root (for proxy servers, default: '')
-p, --prefix add path or filename prefix to html link (default: '')
-t, --topics where the topics files will reside
Using the options -t, s and -w will create suitable subdirectories in the directory specified with -b.
The option -p is necessary if the webpage will not be deployed on the server root but in a subdirectory.
Examples:
$(basename "$0") aperiodSchr.md
$(basename "$0") -d -b build -t /forschung/topics/ -w /forschung/ -p /e10/research -l /master/1eefgl aperiodSchr.md"
############################################################
#!/bin/bash
RESEARCH_BIN=$RESEARCH_ROOT/bin
RESEARCH_STATIC=$RESEARCH_ROOT/static
PROJECT_PATH=""
RESEARCH_BUILD=`pwd`"/build"
RESEARCH_TOPICS=$RESEARCH_ROOT/topics
DEBUG_MODE=false
while getopts ':hdb:l:s:t:w:p:' option; do
case "$option" in
h | --help) echo "$usage"
exit
;;
b | --build) RESEARCH_BUILD=$OPTARG
;;
d | --debug) DEBUG_MODE=true
;;
t | --topics) RESEARCH_TOPICS=$OPTARG
;;
p | --prefix) PROJECT_ROOT=$OPTARG
;;
l | --location) PROJECT_LOCATION=$OPTARG
;;
:) printf "missing argument for -%s\n" "$OPTARG" >&2
echo "$usage" >&2
exit 1
;;
\?) printf "illegal option: -%s\n" "$OPTARG" >&2
echo "$usage" >&2
exit 1
;;
esac
done
echo "Building into $RESEARCH_BUILD ..."
rm -rf $RESEARCH_BUILD && mkdir $RESEARCH_BUILD
echo "Preprocessing Topics..."
for f in $RESEARCH_TOPICS/*.md
do
filename=$(basename -- "$f")
$RESEARCH_BIN/preproc_topic.sh -b "$RESEARCH_BUILD" \
-s "/home/" \
-t "/forschung/topics/" \
-w "/forschung/" \
-p "${PROJECT_ROOT}${PROJECT_LOCATION}" \
$f >> $RESEARCH_BUILD/build.log 2>&1
$RESEARCH_BIN/run_pandoc.sh -b "$RESEARCH_BUILD/forschung/topics" \
-a "$RESEARCH_ROOT/topics" \
$RESEARCH_BUILD/forschung/topics/$filename >> $RESEARCH_BUILD/build.log 2>&1
$RESEARCH_BIN/postproc_topic.sh -b "$RESEARCH_BUILD/forschung/topics" \
-p "${PROJECT_LOCATION}" \
$RESEARCH_BUILD/forschung/topics/${filename%.md}.html >> $RESEARCH_BUILD/build.log 2>&1
if [ "$DEBUG_MODE" = false ]; then rm -rf $RESEARCH_BUILD/forschung/topics/${filename%.md}{.md,*bkp} ; fi
done
#translate staff file snippets
for f in $RESEARCH_BUILD/home/*.md
do
filename=$(basename -- "$f")
$RESEARCH_BIN/run_pandoc.sh -b "$RESEARCH_BUILD/home" \
$RESEARCH_BUILD/home/$filename >> $RESEARCH_BUILD/build.log 2>&1
# replace h2 tag by div
sed -i -e "s;<h2\(.*\)>\(.*\)</h2.*>;<div\1>\2</div>;g" \
$RESEARCH_BUILD/home/${filename%.md}.html
if [ "$DEBUG_MODE" = false ]; then rm -rf $RESEARCH_BUILD/home/$filename ; fi
done
#translate wg file snippets
for wg in aa cm dm nm st
do
filename=$(basename -- "$RESEARCH_BUILD/forschung/$wg/forschung.md")
$RESEARCH_BIN/run_pandoc.sh -b "$RESEARCH_BUILD/forschung/$wg" \
$RESEARCH_BUILD/forschung/$wg/$filename >> $RESEARCH_BUILD/build.log 2>&1
sed -i -e "s;<h2\(.*\)>\(.*\)</h2.*>;<div\1>\2</div>;g" \
$RESEARCH_BUILD/forschung/$wg/${filename%.md}.html
if [ "$DEBUG_MODE" = false ]; then rm -rf $RESEARCH_BUILD/forschung/$wg/$filename ; fi
done
# build index files
$RESEARCH_BIN/run_pandoc.sh -b "$RESEARCH_BUILD/" \
$RESEARCH_BUILD