blob: 0a1d2165f58da4cc13132648147648e3d5b22be2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/bash
#
# tiny eclipse wrapper script to allow per user workbenches
# under each user's home.
#
# (c) March 2003 D. Seyffer <uid0@getroot.de>
#
ECLIPSE_DIR="/usr/lib/eclipse"
if [ "`basename $0`" = "eclipse-motif" ] ; then
ECLIPSE="${ECLIPSE_DIR}/eclipse-motif";
else
ECLIPSE="${ECLIPSE_DIR}/eclipse";
fi
WORKBENCH="${HOME}/.eclipse/"
###################################################
if [ ! -d ${ECLIPSE_DIR} ] ; then
echo " Eclipse directory not found.";
exit 1;
else
echo " Eclipse found.";
fi
if [ ! -x ${ECLIPSE} ] ; then
echo " Eclipse executable not found or not executable.";
exit 1;
else
echo " Executable found and is executable.";
fi
if [ ! -d ${WORKBENCH} ] ; then
echo " No existing workbench for current user!";
echo " First time startup? Will prepare and have eclipse create one...";
mkdir -p ${WORKBENCH}
if [ ! -d ${WORKBENCH} ] ; then
echo " Error creating workbench env!";
exit 1;
fi
else
echo " Found existing workbench directory for current user.";
fi
echo " Starting Eclipse...";
cd ${WORKBENCH}
${ECLIPSE}
|