blob: a2da3051f61809b45cd0f073dbd8291a3d4ced86 [file] [log] [blame]
#!/bin/bash -e
cd
function safe_sw() {
if [ -e "/active/$1" ];then
echo " * $1 is already present"
else
/bin/sw "$@"
fi
}
safe_sw eclipse
name="`hostname`"
WS=ws_$name
if [ ! -d "$WS" ]; then
echo " * first run detected; initializing workspace"
git clone https://github.com/kgyrtkirk/default-eclipse-workspace $WS
for p in hive tez;do
if [ -d "$p" ]; then
echo " * importing $p..."
eclipse -nosplash -data ~/$WS -application com.seeq.eclipse.importprojects.headlessimport -import ~/$p
fi
done
fi
eclipse -nosplash -data "$WS" "$@"