aboutsummaryrefslogtreecommitdiff
path: root/util/pkgdel
blob: f7d52568c9a7bff15af42669eba1f09a29b81ff3 (plain) (blame)
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/bash
#
#  PKGDEL -- Delete an external package from the dynamic directory.


bindir="`dirname $0`"	# get iraf root
irafdir=${bindir%/*}

# Initialize the $iraf and environment.
if [ -z "$iraf" ]; then
  if [ -e "$HOME/.iraf/setup.sh" ]; then
    source $HOME/.iraf/setup.sh
  else
    source ../unix/hlib/setup.sh
  fi
else
    source $iraf/unix/hlib/setup.sh
fi


if [ -e $1 ]; then
    /bin/rm -rf $1	>> /dev/null 2>&1
fi

exit 0