summaryrefslogtreecommitdiff
path: root/web/clip/unix/clp_env.csh
blob: 06fe7e2267b9c685757de2d79d88e3845096d492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/csh 
# CLIP Cshellscript equal to CLP_ENV.BAT

unalias rm
rm clp_env.dat
touch clp_env.dat

if (.$1 == .) then
             echo unsetenv CLIP_SRC  >> clp_env.dat
	     echo unsetenv CLIP_TRG  >> clp_env.dat
             echo ..... CLiP environment cleared .....
             exit
endif

if (.$2 == .) then
   	     echo ..... Please specify directories for  .....
	     echo ..... SOURCE files and TARGET modules .....
	     exit
endif

echo "setenv CLIP_SRC  $1" >> clp_env.dat
echo "setenv CLIP_TRG  $2" >> clp_env.dat
echo "..... Set CLiP environment ....."
echo "Source file directory is   " $1
echo "Target module directory is " $2