From 9d175880ce7e6c3f1498c2873af1380f0f1be9a5 Mon Sep 17 00:00:00 2001
From: Henry <Henry>
Date: Thu, 30 Sep 2010 17:22:40 +0100
Subject: [PATCH] etc/cshrc: allow option setting for option software to be
 specified in ~/OpenFOAM/???/apps/<application>/cshrc

---
 etc/cshrc | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/etc/cshrc b/etc/cshrc
index 7ceff2ff58e..807d38f0425 100644
--- a/etc/cshrc
+++ b/etc/cshrc
@@ -255,8 +255,17 @@ _foamSource $WM_PROJECT_DIR/etc/aliases.csh
 
 # Source user setup files for optional packages
 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-_foamSource $WM_PROJECT_DIR/etc/apps/paraview3/cshrc
-# _foamSource $WM_PROJECT_DIR/etc/apps/ensight/cshrc
+set paraview3=`$WM_PROJECT_DIR/bin/foamEtcFile apps/paraview3/cshrc`
+if ( $status == 0 ) then
+    _foamSource $paraview3
+endif
+unset paraview3
+
+set ensight=`$WM_PROJECT_DIR/bin/foamEtcFile apps/ensight/cshrc`
+if ( $status == 0 ) then
+    _foamSource $ensight
+endif
+unset ensight
 
 
 # Clean environment paths again. Only remove duplicates
-- 
GitLab