#!/bin/csh -f
set me = $0
if ( ! -d swampy || ! -e setup.py ) then
   set target = $me:h
   if ( $target == . ) then
      echo There is something wrong, this should not happen.
      echo Please get help.
      echo Please close the window when you are done.
      sleep 9000
      exit -1
   endif
   cd $target
   if ( ! -d swampy || ! -e setup.py ) then
      echo There is something wrong, this should not happen.
      echo Please get help.
      echo Please close the window when you are done.
      sleep 9000
      exit -1
   endif
endif
sudo python setup.py install
if ($status) python wait.py
