#!/bin/csh NeXtMidas shell finalization script must be sourced
#
# @author Jeff Schoen
# @version $Id: nmend,v 1.9 2011/07/11 21:25:53 ntn Exp $
#
unalias nm
unalias nmprofile
unalias nmd
unalias nmend
unalias nmedit

if ( $?NM_SF ) then
  \rm -f $NM_SF.msf $NM_SF.bat
endif


# Remove ONLY the NM_* variables that we set.
#   JC4: Since some users have various NM_USER_* variables we can't just.
#        remove all NM_* variables.

if ($?NM_JB)  unsetenv NM_JB
if ($?NM_OS)  unsetenv NM_OS
if ($?NM_OPT) unsetenv NM_OPT
if ($?NM_DIR) unsetenv NM_DIR
if ($?NM_PID) unsetenv NM_PID
if ($?NM_SF)  unsetenv NM_SF
if ($?NM_XP)  unsetenv NM_XP
if ($?NM_CP)  unsetenv NM_CP
if ($?NM_JAVA)  unsetenv NM_JAVA
if ($?NM_JAVAC) unsetenv NM_JAVAC

if ($?NM_JVM_FLAGS)           unsetenv NM_JVM_FLAGS
if ($?NM_PROFILER_FLAGS)      unsetenv NM_PROFILER_FLAGS
if ($?NM_SAVE_FLAGS)          unsetenv NM_SAVE_FLAGS
if ($?JAVA2D_USEPLATFORMFONT) unsetenv JAVA2D_USEPLATFORMFONT
