-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSETUP.fish
More file actions
executable file
·39 lines (37 loc) · 968 Bytes
/
SETUP.fish
File metadata and controls
executable file
·39 lines (37 loc) · 968 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/fish
#
#
# CRABTOOLKITMICHI2
if contains "Linux" (uname)
set -x CRABTOOLKITMICHI2 (dirname (readlink -f (status --current-filename)))
end
if contains "Darwin" (uname)
set -x CRABTOOLKITMICHI2 (dirname (perl -MCwd -e 'print Cwd::abs_path shift' (status --current-filename)))
end
export CRABTOOLKITMICHI2
#<DEBUG># echo "$CRABTOOLKITMICHI2"
#
# Check
if [ x"$CRABTOOLKITMICHI2" = x"" ]
exit
end
#
# PATH
if not contains "$CRABTOOLKITMICHI2/bin" $PATH
set -x PATH "$CRABTOOLKITMICHI2/bin" $PATH
end
if not contains "$CRABTOOLKITMICHI2/lib/idl" $IDL_PATH
set -x IDL_PATH "$CRABTOOLKITMICHI2/lib/idl" $IDL_PATH
end
#
# LIST
set -x CRABTOOLKITCMD "michi2-deploy-files" "michi2-run-SED-fitting-v5"
#
# CHECK
# -- 20160427 only for interactive shell
# -- http://stackoverflow.com/questions/12440287/scp-doesnt-work-when-echo-in-bashrc
if status --is-interactive
for TEMPTOOLKITCMD in {$CRABTOOLKITCMD}
type $TEMPTOOLKITCMD
end
end