diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /util/pkgdel | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'util/pkgdel')
-rwxr-xr-x | util/pkgdel | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/util/pkgdel b/util/pkgdel new file mode 100755 index 00000000..f7d52568 --- /dev/null +++ b/util/pkgdel @@ -0,0 +1,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 |