Browse Source

Updated vague documentation about DSDEVS

Yentl Van Tendeloo 8 years ago
parent
commit
94b9296d6b
3 changed files with 7 additions and 54 deletions
  1. 6 1
      doc/dynamicstructure.rst
  2. 0 32
      doc/rewrite_documentation.sh
  3. 1 21
      doc/upload.sh

File diff suppressed because it is too large
+ 6 - 1
doc/dynamicstructure.rst


+ 0 - 32
doc/rewrite_documentation.sh

@@ -1,32 +0,0 @@
-#!/bin/bash
-
-function rewrite {
-    echo $1
-    sed -i.bak -e s/_downloads/downloads/g $1
-    sed -i.bak -e s/_static/static/g $1
-    sed -i.bak -e s/_images/images/g $1
-    sed -i.bak -e s/_modules/modules/g $1
-    sed -i.bak -e s/_sources/sources/g $1
-    rm ${1}.bak
-}
-
-echo `pwd`
-cd _build/html
-echo `pwd`
-
-rm -r downloads || true
-rm -r images || true
-rm -r modules || true
-rm -r sources || true
-rm -r static || true
-mv _downloads downloads 2> /dev/null
-mv _static static 2> /dev/null
-mv _images images 2> /dev/null
-mv _modules modules 2> /dev/null
-mv _sources sources 2> /dev/null
-
-export -f rewrite
-for f in `find . -type f`
-do
-    rewrite $f
-done

+ 1 - 21
doc/upload.sh

@@ -1,22 +1,2 @@
 #!/bin/bash
-# Source: http://superuser.com/questions/523194/how-to-recursively-upload-a-directory-to-a-webdav-server-through-https-from-the
-# Use it like: ./upload.sh "_build/html" "http://msdl.cs.mcgill.ca/projects/DEVS/PythonPDEVS/documentation/"
-
-src="_build/html";
-
-cd "$(dirname "$src")";
-src="$(basename "$src")";
-root="$(pwd)";
-rc="$(mktemp)";
-{
-    find "$src" '(' -type d -a -readable ')' \
-    -printf 'mkcol "%p"\n';
-    find "$src" '(' -type f -a -readable ')' \
-    -printf 'cd "%h"\nlcd "%h"\n'            \
-    -printf 'mput "%f"\n'                    \
-    -printf 'cd -\nlcd "'"$root"'"\n';
-    echo "quit";
-} > "$rc";
-
-cadaver -r "$rc" "http://msdl.cs.mcgill.ca/projects/DEVS/PythonPDEVS/documentation/";
-rm -f "$rc";
+rsync -v --progress --recursive _build/html/* msdl.uantwerpen.be:/var/www/msdl/documentation/PythonPDEVS/