aboutsummaryrefslogtreecommitdiff
path: root/util/pkgdel
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /util/pkgdel
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'util/pkgdel')
-rwxr-xr-xutil/pkgdel25
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