diff --git a/package_onelab.sh b/package_onelab.sh index 7fe184b9c3eaf53d3a05ec0bce600703a66b4a2d..64573536cabeb68d718c9a24eabc4d5c55c506d3 100755 --- a/package_onelab.sh +++ b/package_onelab.sh @@ -12,8 +12,9 @@ on \"Run\". The software is distributed under the terms of the GNU General Public License. See the LICENSE and CREDITS files for more information. -The 'tutorials' directory contains ONELAB tutorials. The 'models' directory contains -a selection of other ready-to-use models from http://onelab.info. +The 'tutorials' directory contains ONELAB tutorials. The 'models' directory +contains a selection of other ready-to-use models from http://onelab.info. The +'templates' directory contains generic model templates. See http://onelab.info for additional examples, up-to-date versions and documentation." > /tmp/README.txt @@ -81,6 +82,7 @@ if [ $# -lt 1 ] || [ $1 == "source" ]; then cp -R /tmp/models onelab-source/ cp -R /tmp/tutorials onelab-source/ cp -R onelab-source/gmsh-*${GMSH}*-source/tutorial/*.* onelab-source/tutorials/gmsh/ + cp -R onelab-source/getdp-*${GETDP}*-source/templates onelab-source/ rm -rf /tmp/gmsh-* rm -rf /tmp/getdp-* zip -r onelab-source.zip onelab-source @@ -110,6 +112,7 @@ if [ $# -lt 1 ] || [ $1 == "win64" ]; then cp -R /tmp/models onelab-Windows64/ cp -R /tmp/tutorials onelab-Windows64/ cp -R /tmp/gmsh-*${GMSH}-Windows64/tutorial/*.* onelab-Windows64/tutorials/gmsh/ + cp -R /tmp/getdp-*${GETDP}-Windows64/templates onelab-Windows64/ rm -rf /tmp/gmsh-* rm -rf /tmp/getdp-* zip -r onelab-Windows64.zip onelab-Windows64 @@ -139,6 +142,7 @@ if [ $# -lt 1 ] || [ $1 == "win32" ]; then cp -R /tmp/models onelab-Windows32/ cp -R /tmp/tutorials onelab-Windows32/ cp -R /tmp/gmsh-*${GMSH}-Windows32/tutorial/*.* onelab-Windows32/tutorials/gmsh/ + cp -R /tmp/getdp-*${GETDP}-Windows32/templates onelab-Windows32/ rm -rf /tmp/gmsh-* rm -rf /tmp/getdp-* zip -r onelab-Windows32.zip onelab-Windows32 @@ -167,6 +171,7 @@ if [ $# -lt 1 ] || [ $1 == "linux64" ]; then cp -R /tmp/models onelab-Linux64/ cp -R /tmp/tutorials onelab-Linux64/ cp -R /tmp/gmsh-*${GMSH}-Linux64/share/doc/gmsh/tutorial/*.* onelab-Linux64/tutorials/gmsh/ + cp -R /tmp/getdp-*${GETDP}-Linux64/share/doc/getdp/templates onelab-Linux64 rm -rf /tmp/gmsh-* rm -rf /tmp/getdp-* zip -r onelab-Linux64.zip onelab-Linux64 @@ -195,6 +200,7 @@ if [ $# -lt 1 ] || [ $1 == "linux32" ]; then cp -R /tmp/models onelab-Linux32/ cp -R /tmp/tutorials onelab-Linux32/ cp -R /tmp/gmsh-*${GMSH}-Linux32/share/doc/gmsh/tutorial/*.* onelab-Linux32/tutorials/gmsh/ + cp -R /tmp/getdp-*${GETDP}-Linux32/share/doc/getdp/templates onelab-Linux32 rm -rf /tmp/gmsh-* rm -rf /tmp/getdp-* zip -r onelab-Linux32.zip onelab-Linux32 @@ -225,6 +231,7 @@ if [ $# -lt 1 ] || [ $1 == "mac" ]; then cp -R /tmp/models onelab-MacOSX/ cp -R /tmp/tutorials onelab-MacOSX/ cp -R gmsh_mount/tutorial/*.* onelab-MacOSX/tutorials/gmsh/ + cp -R /tmp/getdp-*${GETDP}-MacOSX/share/doc/getdp/templates onelab-MacOSX/ hdiutil eject gmsh_mount rm -rf /tmp/gmsh-* rm -rf /tmp/getdp-*