awips2/rpms/awips2.ade/Installer.eclipse/scripts/eclipseShortcutWrap.sh
root 133dc97f67 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 06a8b51d6d [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]
Former-commit-id: 9f19e3f712
Former-commit-id: a02aeb236c
2012-01-06 08:55:05 -06:00

31 lines
491 B
Bash

#!/bin/bash
# This Script Should Only Be Run By The ADE Eclipse Shortcuts.
# Any User That Attempts To Run This Script Manually May
# Encounter Unexpected Behavior.
dir=${0%/*}
if [ "${dir}" = "$0" ]; then
dir="."
fi
cd ${dir}
# Attempt To Run The Eclipse Script.
./eclipse.sh
RC="$?"
if [ ! "${RC}" = "0" ]; then
sleep 50
exit 1
fi
COUNT=5
echo -n "This Terminal Will Close In ..."
while [ ! "${COUNT}" = "0" ]
do
echo -n " ${COUNT}"
let COUNT=COUNT-1
sleep 2
done