Commit f87cea82 authored by Dominik Charousset's avatar Dominik Charousset

Update script for updating gh-pages

parent 8f2f8a2b
...@@ -12,4 +12,5 @@ lib/* ...@@ -12,4 +12,5 @@ lib/*
manual/build-pdf/* manual/build-pdf/*
manual/build-html/* manual/build-html/*
manual/*.toc manual/*.toc
manual/manual.html
*.swp *.swp
...@@ -12,11 +12,9 @@ if [ ! -d ../gh-pages ]; then ...@@ -12,11 +12,9 @@ if [ ! -d ../gh-pages ]; then
fi fi
echo "build documentation ..." echo "build documentation ..."
make doc &>/dev/null make doc &>/dev/null || ninja -C build doc &>/dev/null || exit
if [ -f manual.pdf ]; then if [ ! -f manual/manual.pdf ]; then
echo "PDF manual found ..."
else
echo "no PDF manual found ... stop" echo "no PDF manual found ... stop"
exit exit
fi fi
...@@ -29,10 +27,10 @@ make html &>/dev/null ...@@ -29,10 +27,10 @@ make html &>/dev/null
echo "copy documentation into gh-pages ..." echo "copy documentation into gh-pages ..."
cd ../../gh-pages cd ../../gh-pages
rm -f *.tex *.html *.css *.png *.js manual/manual.pdf manual/index.html rm -f *.tex *.html *.css *.png *.js manual/manual.pdf manual/index.html
cp -R ../libcppa/html/* . cp -R ../actor-framework/html/* .
mkdir manual mkdir manual
cp ../libcppa/manual.pdf manual/ cp ../actor-framework/manual/manual.pdf manual/
cp ../libcppa/manual/manual.html manual/index.html cp ../actor-framework/manual/manual.html manual/index.html
echo "commit ..." echo "commit ..."
git add . git add .
...@@ -41,4 +39,4 @@ git commit -a -m "documentation update" ...@@ -41,4 +39,4 @@ git commit -a -m "documentation update"
echo "push ..." echo "push ..."
git push git push
cd ../libcppa cd ../actor-framework
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment