diff --git a/Cassiopee/CPlot/doc/install b/Cassiopee/CPlot/doc/install index 3f79024fb..b324ae798 100755 --- a/Cassiopee/CPlot/doc/install +++ b/Cassiopee/CPlot/doc/install @@ -1,34 +1,18 @@ - #! /bin/sh +#! /bin/sh echo 'Installing CPlot tests and doc' if [ "$CASSIOPEE" = "" ]; then echo "You must specify a CASSIOPEE variable in your environment." echo "This variable specifies the installation path of *Cassiopee*." exit fi - -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/CPlot" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/CPlot" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' - exit -fi + +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/CPlot" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Compressor/doc/install b/Cassiopee/Compressor/doc/install index 9e9be8a39..9ae60b12a 100755 --- a/Cassiopee/Compressor/doc/install +++ b/Cassiopee/Compressor/doc/install @@ -5,29 +5,14 @@ if [ "$CASSIOPEE" = "" ]; then echo "This variable specifies the installation path of *Cassiopee*." exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Compressor" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Compressor" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' - exit -fi + +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Compressor" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Connector/doc/install b/Cassiopee/Connector/doc/install index 34140cf2a..d8ac2f333 100755 --- a/Cassiopee/Connector/doc/install +++ b/Cassiopee/Connector/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Connector" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Connector" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Connector" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Converter/doc/install b/Cassiopee/Converter/doc/install index fdfc1aec5..fa03ad157 100755 --- a/Cassiopee/Converter/doc/install +++ b/Cassiopee/Converter/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Converter" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Converter" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Converter" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Dist2Walls/doc/install b/Cassiopee/Dist2Walls/doc/install index d490bcf7e..818ed5c14 100755 --- a/Cassiopee/Dist2Walls/doc/install +++ b/Cassiopee/Dist2Walls/doc/install @@ -5,30 +5,14 @@ if [ "$CASSIOPEE" = "" ]; then echo "This variable specifies the installation path of *Cassiopee*." exit fi -if ([ $# -eq 0 ]) -then - - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Dist2Walls" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Dist2Walls" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' - exit -fi + +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Dist2Walls" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Distributor2/doc/install b/Cassiopee/Distributor2/doc/install index ca0a346a6..179a1712b 100755 --- a/Cassiopee/Distributor2/doc/install +++ b/Cassiopee/Distributor2/doc/install @@ -6,29 +6,14 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Distributor2" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Distributor2" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' - exit -fi + +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Distributor2" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Generator/doc/install b/Cassiopee/Generator/doc/install index 1b44698a1..f6b9bebd0 100755 --- a/Cassiopee/Generator/doc/install +++ b/Cassiopee/Generator/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Generator" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Generator" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Generator" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Geom/doc/install b/Cassiopee/Geom/doc/install index d17a3b681..5c0bfc680 100755 --- a/Cassiopee/Geom/doc/install +++ b/Cassiopee/Geom/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Geom" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Geom" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install : install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Geom" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Initiator/doc/install b/Cassiopee/Initiator/doc/install index 827eb3307..7914b7aae 100755 --- a/Cassiopee/Initiator/doc/install +++ b/Cassiopee/Initiator/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Initiator" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Initiator" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install : install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Initiator" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Intersector/doc/install b/Cassiopee/Intersector/doc/install index 409af63ec..e346e862d 100755 --- a/Cassiopee/Intersector/doc/install +++ b/Cassiopee/Intersector/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Intersector" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Intersector" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install : install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Intersector" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/KCore/doc/install b/Cassiopee/KCore/doc/install index 90245b8cd..97e66f5f9 100755 --- a/Cassiopee/KCore/doc/install +++ b/Cassiopee/KCore/doc/install @@ -5,29 +5,12 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Cassiopee" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Cassiopee" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install : install in docs/doc.' - exit -fi +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Cassiopee" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy all docs locally cp $CASSIOPEE/Cassiopee/Converter/doc/source/Internal.rst source/ diff --git a/Cassiopee/Modeler/doc/install b/Cassiopee/Modeler/doc/install index f5accf604..1d06033f6 100755 --- a/Cassiopee/Modeler/doc/install +++ b/Cassiopee/Modeler/doc/install @@ -1,35 +1,21 @@ #!/bin/sh echo 'Installing Modeler tests and doc' -if ([ $# -eq 0 ]) -then - if [ "$CASSIOPEE" = "" ]; then - echo "You must specify a CASSIOPEE variable in your environment." - echo "This variable specifies the installation path of *Cassiopee*." - exit - fi - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Modeler" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Modeler" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' + +if [ "$CASSIOPEE" = "" ]; then + echo "You must specify a CASSIOPEE variable in your environment." + echo "This variable specifies the installation path of *Cassiopee*." exit fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Modeler" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" + # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) then diff --git a/Cassiopee/OCC/doc/install b/Cassiopee/OCC/doc/install index 9c931dc7b..55a103dc1 100755 --- a/Cassiopee/OCC/doc/install +++ b/Cassiopee/OCC/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/OCC" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/OCC" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/OCC" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Post/doc/install b/Cassiopee/Post/doc/install index 1f3514bc0..61c26d7b1 100755 --- a/Cassiopee/Post/doc/install +++ b/Cassiopee/Post/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Post" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Post" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install : install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Post" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/RigidMotion/doc/install b/Cassiopee/RigidMotion/doc/install index d37974136..e55412689 100755 --- a/Cassiopee/RigidMotion/doc/install +++ b/Cassiopee/RigidMotion/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/RigidMotion" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/RigidMotion" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install : install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/RigidMotion" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/Transform/doc/install b/Cassiopee/Transform/doc/install index d97d2a64a..33595037b 100755 --- a/Cassiopee/Transform/doc/install +++ b/Cassiopee/Transform/doc/install @@ -6,29 +6,13 @@ if [ "$CASSIOPEE" = "" ]; then exit fi -if ([ $# -eq 0 ]) -then - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Transform" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/Transform" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install : install in docs/doc.' - exit -fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/Transform" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" # Copy examples to global dir (production mod) if ([ $PRODUCTION -eq 1 ]) diff --git a/Cassiopee/XCore/doc/install b/Cassiopee/XCore/doc/install index 543056a39..e3e2ce00a 100755 --- a/Cassiopee/XCore/doc/install +++ b/Cassiopee/XCore/doc/install @@ -1,31 +1,17 @@ #! /bin/bash -if ([ $# -eq 0 ]) -then - if [ "$CASSIOPEE" = "" ]; then - echo "You must specify a CASSIOPEE variable in your environment." - echo "This variable specifies the installation path of *Cassiopee*." - exit - fi - PRODUCTION=0 - # Destination docs - DEST="./doc" - # Destination tests unitaires - DEST2="$DEST/Examples/XCore" - # Destination des release notes - DEST3="$DEST" -elif ([ $# -eq 2 ]) -then - PRODUCTION=1 - # Destination docs - DEST="$CASSIOPEE/docs/doc" - # Destination tests unitaires - DEST2="$DEST/Examples/XCore" - # Destination des release notes - DEST3="$CASSIOPEE/docs/Download" -else - echo 'install: install locally' - echo 'install 1 2: install in docs/doc.' + +if [ "$CASSIOPEE" = "" ]; then + echo "You must specify a CASSIOPEE variable in your environment." + echo "This variable specifies the installation path of *Cassiopee*." exit fi +PRODUCTION=1 +# Destination docs +DEST="$CASSIOPEE/docs/doc" +# Destination tests unitaires +DEST2="$DEST/Examples/XCore" +# Destination des release notes +DEST3="$CASSIOPEE/docs/Download" + # do nothing for now