Don't create and install diff viewer man page if mc is built --without-diff-viewer.
[midnight-commander.git] / contrib / mc-wrapper.csh.in
blob1eca8e7b71301e00658f4bbd77869a4bfc23c80b
1 set MC_USER=`whoami`
3 if ($?TMPDIR) then
4         setenv MC_PWD_FILE $TMPDIR/mc-$MC_USER/mc.pwd.$$
5 else
6         setenv MC_PWD_FILE /tmp/mc-$MC_USER/mc.pwd.$$
7 endif
9 @bindir@/mc -P "$MC_PWD_FILE" $*
11 if (-r "$MC_PWD_FILE") then
12         setenv MC_PWD "`cat '$MC_PWD_FILE'`"
13         if ("$MC_PWD" != "$cwd" && -d "$MC_PWD") then
14                 cd "$MC_PWD"
15         endif
16         unsetenv MC_PWD
17 endif
19 rm -f "$MC_PWD_FILE"
20 unsetenv MC_PWD_FILE
21 unsetenv MC_USER