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

add README tu tuhh_build

parent 6aaf80f6
No related branches found
No related tags found
2 merge requests!82Resolve "use ssio directives to produce webpage",!77Resolve "tuhh-deployment"
......@@ -11,7 +11,7 @@ if [ $# -lt 2 ]
then
RESEARCH_BUILD=`pwd`"/build"
else
RESEARCH_BUILD="$1"
RESEARCH_BUILD="$2"
fi
mkdir -p $RESEARCH_BUILD
rm -rf $RESEARCH_BUILD/README.md
......
......@@ -34,7 +34,7 @@ RESEARCH_DEPLOY=$RESEARCH_ROOT/build-tuhh
rm -rf $RESEARCH_BUILD $RESEARCH_DEPLOY
mkdir -p $RESEARCH_BUILD $RESEARCH_DEPLOY
echo "Preproc Topics"
echo "Preprocessing Topics..."
$RESEARCH_BIN/preproc_topics.sh "$RESEARCH_BUILD" \
"$RESEARCH_ROOT/topics" \
"$RESEARCH_BUILD/home" \
......@@ -48,24 +48,24 @@ $RESEARCH_BIN/create_html.sh $RESEARCH_DEPLOY \
rm $RESEARCH_DEPLOY/index.md
# build html files
echo "Creating HTML Topics with pandoc"
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"
echo "Inserting SSI-directives..."
$RESEARCH_BIN/replace_ssi_marker.sh $RESEARCH_DEPLOY/forschung/topics \
$RESEARCH_BUILD/forschung/topics >> $RESEARCH_BUILD/build.log 2>&1
echo "Creating HTML Snippets for Staff"
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
# wg pages
echo "Creating HTML Snippets for WG"
echo "Creating HTML Snippets for WG..."
for wg in aa cm dm nm st
do
$RESEARCH_BIN/create_html.sh $RESEARCH_DEPLOY/forschung/$wg \
......@@ -73,10 +73,17 @@ do
TUHH >> $RESEARCH_BUILD/build.log 2>&1
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/img $RESEARCH_DEPLOY/forschung/topics
cp -r $RESEARCH_STATIC/include $RESEARCH_DEPLOY
# XBitHack (cf. https://httpd.apache.org/docs/current/mod/mod_include.html)
chmod +x $RESEARCH_DEPLOY/forschung/topics/*.html
echo "Done. Review file://$RESEARCH_DEPLOY/index.html ."
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