awips2/rpms/awips2.ade/Installer.eclipse/scripts/eclipseShortcutWrap.sh
Bryan Kowal d537df4ab0 Issue #202 - restoring rpm directory to ss_sync.
Former-commit-id: ea1c82452b [formerly 65e1e4ee0b [formerly 56068aa96fa6daf113861476bf4b7aebe2021ca4]]
Former-commit-id: 65e1e4ee0b
Former-commit-id: 4453ad2d10
2012-01-20 13:38:00 -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