]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
added first test for a script to generate an offline documentation
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Apr 2013 04:20:39 +0000 (04:20 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Apr 2013 04:20:39 +0000 (04:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@29234 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/utilities/makeofflinedoc.sh [new file with mode: 0755]

diff --git a/deal.II/contrib/utilities/makeofflinedoc.sh b/deal.II/contrib/utilities/makeofflinedoc.sh
new file mode 100755 (executable)
index 0000000..26a3593
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+if [ ! -f index.html ]
+then
+  echo "Please run this script in the doc output directory (install/doc)"
+  exit 1
+fi
+
+mkdir images >/dev/null
+
+echo "Downloading images (press ctrl-c to cancel) ..."
+cd images
+{
+trap "echo \"(skipping)\"" SIGINT
+wget -q -nd -A png,gif -m -l 1 -np  http://www.dealii.org/images/steps/developer/
+}
+cd ..
+
+echo "Patching html files ..."
+sed -i 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' step_*.html
+
+echo "all done!"
\ No newline at end of file

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.