From d43afc5642395a9a979ac904e9f1744797bb3eaa Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 15 Apr 2018 09:22:04 +0200
Subject: [PATCH] templates

---
 package_onelab.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/package_onelab.sh b/package_onelab.sh
index 7fe184b..6457353 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-*
-- 
GitLab