echo "Adding the iTasks-git environment"
patch /opt/clean/etc/IDEEnvs <<EOPATCH
---- 2019-07-24 02:47:02.000000000 +0200
-+++ IDEEnvs 2019-07-24 08:22:52.713808372 +0200
-@@ -45,7 +45,42 @@
- Path: {Application}/lib/Platform/Deprecated/StdLib
+--- IDEEnvs.orig 2019-11-19 08:13:53.243123284 +0100
++++ IDEEnvs 2019-11-19 08:15:02.819053965 +0100
+@@ -61,6 +61,39 @@
Path: {Application}/lib/ABCInterpreter
Path: {Application}/lib/GraphCopy
-- Path: {Application}/lib/iTasks
-+ Path: {Application}/lib/iTasks
-+ Path: {Application}/lib/Gast
-+ EnvironmentCompiler: lib/exe/cocl::-dynamics
-+ EnvironmentCodeGen: lib/exe/cg
-+ EnvironmentLinker: lib/exe/linker|lib/exe/itasks-web-collector
-+ EnvironmentDynLink: lib/exe/linker
-+ EnvironmentABCOptimise: lib/exe/abcopt
-+ EnvironmentByteCodeGen: lib/exe/bcgen
-+ EnvironmentByteCodeLink: lib/exe/bclink
-+ EnvironmentByteCodeStrip: lib/exe/bcstrip
-+ EnvironmentByteCodePrelink: lib/exe/bcprelink
-+ EnvironmentVersion: 920
-+ EnvironmentRedirect: False
-+ EnvironmentCompileMethod: Pers
-+ EnvironmentProcessor: I386
-+ Environment64BitProcessor: True
-+ Environment
-+ EnvironmentName: iTasks-git
-+ EnvironmentPaths
-+ Path: {Application}/lib/StdEnv
-+ Path: {Application}/lib/Dynamics
-+ Path: {Application}/lib/TCPIP
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/Platform-x86
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Posix
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Linux
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Linux-64
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent/Deprecated/Generics
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent/Deprecated/StdLib
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent/Deprecated/ArgEnv
-+ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent/Deprecated/MersenneTwister
-+ Path: {Application}/lib/ABCInterpreter
-+ Path: {Application}/lib/GraphCopy
-+ Path: /home/mrl/projects/clean/iTasks-SDK/Libraries
-+ Path: {Application}/lib/iTasks
-+ Path: {Application}/lib/Gast
- EnvironmentCompiler: lib/exe/cocl::-dynamics
+ Path: {Application}/lib/iTasks
++ Path: {Application}/lib/Gast
++ EnvironmentCompiler: lib/exe/cocl-itasks::-dynamics
++ EnvironmentCodeGen: lib/exe/cg
++ EnvironmentLinker: /usr/bin/gcc::-Wl,--gc-sections|lib/exe/itasks-web-collector
++ EnvironmentABCOptimise: lib/exe/abcopt
++ EnvironmentByteCodeGen: lib/exe/bcgen
++ EnvironmentByteCodeLink: lib/exe/bclink
++ EnvironmentByteCodeStrip: lib/exe/bcstrip
++ EnvironmentByteCodePrelink: lib/exe/bcprelink
++ EnvironmentVersion: 920
++ EnvironmentRedirect: False
++ EnvironmentCompileMethod: Pers
++ EnvironmentProcessor: I386
++ Environment64BitProcessor: True
++ Environment
++ EnvironmentName: iTasks-git
++ EnvironmentPaths
++ Path: {Application}/lib/StdEnv
++ Path: {Application}/lib/Dynamics
++ Path: {Application}/lib/TCPIP
++ Path: {Application}/lib/ABCInterpreter
++ Path: {Application}/lib/GraphCopy
++ Path: {Application}/lib/Gast
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/Platform-x86
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Posix
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Linux
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Linux-64
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent/Deprecated/Generics
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent/Deprecated/StdLib
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent/Deprecated/ArgEnv
++ Path: /home/mrl/projects/clean/clean-platform/src/libraries/OS-Independent/Deprecated/MersenneTwister
++ Path: /home/mrl/projects/clean/iTasks-SDK/Libraries
+ EnvironmentCompiler: lib/exe/cocl-itasks::-dynamics
EnvironmentCodeGen: lib/exe/cg
- EnvironmentLinker: lib/exe/linker|lib/exe/itasks-web-collector
+ EnvironmentLinker: /usr/bin/gcc::-Wl,--gc-sections|lib/exe/itasks-web-collector
EOPATCH