diff cc.def @ 8:4b78177439c3

move from work to epccfs on Cirrus
author Henry S Thompson <ht@inf.ed.ac.uk>
date Sun, 11 Oct 2026 23:19:02 +0100
parents c7fa30d1f666
children 53ef1fd47ba2
line wrap: on
line diff
--- a/cc.def	Sun Oct 11 23:17:33 2026 +0100
+++ b/cc.def	Sun Oct 11 23:19:02 2026 +0100
@@ -90,17 +90,18 @@
     unset DEBIAN_FRONTEND PIP_BREAK_SYSTEM_PACKAGES
 
     sed '8i\
-  if [ "$WSHARED" ]\
+  if [ "$SHARED" ]\
   then\
-   PATH="$WSHARED/bin:$PATH"\
+   PATH="$SHARED/bin:$PATH"\
   fi\
 ' -i /etc/profile
 
-    # REMEMBER to check cc/etc/profile has $WSHARED/bin in front of PATH
+    # REMEMBER to check cc/etc/profile has $SHARED/bin in front of PATH
 
 %environment
-export WSHARED=/work/dc007/dc007/shared
-export HOME=/work/dc007/dc007/$(whoami)
+export work=epccfs
+export SHARED=/$(work)/dc007/dc007/shared
+export HOME=/$(work)/dc007/dc007/$(whoami)
 export SINGULARITY_SHELL=/usr/bin/bash
 export LESSOPEN="| /usr/bin/lesspipe %s";
 export LESSCLOSE="/usr/bin/lesspipe %s %s";
@@ -115,14 +116,14 @@
 %runscript
 #!/bin/bash
 
-if [ -f $WSHARED/.bash_extras ]
+if [ -f $SHARED/.bash_extras ]
 then
- . $WSHARED/.bash_extras
+ . $SHARED/.bash_extras
 fi
 
 if [ ! -r $HOME ]
 then
- export HOME=/work/dc007/shared/guest
+ export HOME=/$(work)/dc007/shared/guest
  export USER=guest
 fi