author | wenzelm |
Thu, 23 Jun 2011 16:10:22 +0200 | |
changeset 43521 | d477b92109b8 |
parent 43454 | 71b7a535cf96 |
child 43523 | 5aaa0fe92672 |
permissions | -rwxr-xr-x |
34333 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
34664 | 3 |
# Author: Makarius |
4 |
# |
|
5 |
# DESCRIPTION: Isabelle/jEdit interface wrapper |
|
6 |
||
34333 | 7 |
|
43285 | 8 |
## sources |
9 |
||
43320 | 10 |
declare -a SOURCES=( |
43285 | 11 |
"src/dockable.scala" |
12 |
"src/document_model.scala" |
|
13 |
"src/document_view.scala" |
|
14 |
"src/html_panel.scala" |
|
15 |
"src/isabelle_encoding.scala" |
|
16 |
"src/isabelle_hyperlinks.scala" |
|
17 |
"src/isabelle_markup.scala" |
|
18 |
"src/isabelle_options.scala" |
|
19 |
"src/isabelle_sidekick.scala" |
|
20 |
"src/output_dockable.scala" |
|
21 |
"src/plugin.scala" |
|
22 |
"src/protocol_dockable.scala" |
|
23 |
"src/raw_output_dockable.scala" |
|
24 |
"src/scala_console.scala" |
|
25 |
"src/session_dockable.scala" |
|
43381 | 26 |
"src/text_area_painter.scala" |
43414 | 27 |
"src/token_markup.scala" |
43285 | 28 |
) |
29 |
||
43320 | 30 |
declare -a RESOURCES=( |
43286 | 31 |
"src/actions.xml" |
32 |
"src/dockables.xml" |
|
33 |
"src/Isabelle.props" |
|
34 |
"src/services.xml" |
|
43285 | 35 |
) |
36 |
||
37 |
||
34333 | 38 |
## diagnostics |
39 |
||
34664 | 40 |
PRG="$(basename "$0")" |
41 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
42 |
function usage() |
34333 | 43 |
{ |
44 |
echo |
|
34664 | 45 |
echo "Usage: isabelle $PRG [OPTIONS] [FILES ...]" |
34333 | 46 |
echo |
47 |
echo " Options are:" |
|
48 |
echo " -J OPTION add JVM runtime option" |
|
34409 | 49 |
echo " (default JEDIT_JAVA_OPTIONS=$JEDIT_JAVA_OPTIONS)" |
43285 | 50 |
echo " -b build only" |
34691 | 51 |
echo " -d enable debugger" |
43285 | 52 |
echo " -f fresh build" |
34333 | 53 |
echo " -j OPTION add jEdit runtime option" |
54 |
echo " (default JEDIT_OPTIONS=$JEDIT_OPTIONS)" |
|
55 |
echo " -l NAME logic image name (default ISABELLE_LOGIC=$ISABELLE_LOGIC)" |
|
56 |
echo " -m MODE add print mode for output" |
|
57 |
echo |
|
34664 | 58 |
echo "Start jEdit with Isabelle plugin setup and opens theory FILES" |
34333 | 59 |
echo |
60 |
exit 1 |
|
61 |
} |
|
62 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
63 |
function fail() |
34333 | 64 |
{ |
65 |
echo "$1" >&2 |
|
66 |
exit 2 |
|
67 |
} |
|
68 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
69 |
function failed() |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
70 |
{ |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
71 |
fail "Failed!" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
72 |
} |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
73 |
|
34333 | 74 |
|
75 |
## process command line |
|
76 |
||
77 |
# options |
|
78 |
||
43285 | 79 |
BUILD_ONLY=false |
80 |
BUILD_JARS="jars" |
|
34333 | 81 |
JEDIT_LOGIC="$ISABELLE_LOGIC" |
82 |
JEDIT_PRINT_MODE="" |
|
83 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
84 |
function getoptions() |
34780 | 85 |
{ |
86 |
OPTIND=1 |
|
43285 | 87 |
while getopts "J:bdfj:l:m:" OPT |
34780 | 88 |
do |
89 |
case "$OPT" in |
|
90 |
J) |
|
91 |
JAVA_ARGS["${#JAVA_ARGS[@]}"]="$OPTARG" |
|
92 |
;; |
|
43285 | 93 |
b) |
94 |
BUILD_ONLY=true |
|
95 |
;; |
|
34780 | 96 |
d) |
97 |
JAVA_ARGS["${#JAVA_ARGS[@]}"]="-Xdebug" |
|
98 |
JAVA_ARGS["${#JAVA_ARGS[@]}"]="-Xrunjdwp:transport=dt_socket,server=y,suspend=n" |
|
99 |
;; |
|
43285 | 100 |
f) |
101 |
BUILD_JARS="jars_fresh" |
|
102 |
;; |
|
34780 | 103 |
j) |
104 |
ARGS["${#ARGS[@]}"]="$OPTARG" |
|
105 |
;; |
|
106 |
l) |
|
107 |
JEDIT_LOGIC="$OPTARG" |
|
108 |
;; |
|
109 |
m) |
|
110 |
if [ -z "$JEDIT_PRINT_MODE" ]; then |
|
111 |
JEDIT_PRINT_MODE="$OPTARG" |
|
112 |
else |
|
113 |
JEDIT_PRINT_MODE="$JEDIT_PRINT_MODE,$OPTARG" |
|
114 |
fi |
|
115 |
;; |
|
116 |
\?) |
|
117 |
usage |
|
118 |
;; |
|
119 |
esac |
|
120 |
done |
|
121 |
} |
|
34581
abab3a577e10
slightly more robust treatment of options via arrays;
wenzelm
parents:
34412
diff
changeset
|
122 |
|
38257
f0fd14a9c11f
clarified JEDIT_JAVA_OPTIONS vs. JEDIT_SYSTEM_OPTIONS -- discontinued JEDIT_APPLE_PROPERTIES;
wenzelm
parents:
34881
diff
changeset
|
123 |
declare -a JAVA_ARGS; eval "JAVA_ARGS=($JEDIT_JAVA_OPTIONS $JEDIT_SYSTEM_OPTIONS)" |
34843
eb8806a2e348
define scala.home, for more robust startup of Scala tools, notably the compiler;
wenzelm
parents:
34790
diff
changeset
|
124 |
[ -n "$SCALA_HOME" ] && JAVA_ARGS["${#JAVA_ARGS[@]}"]="-Dscala.home=$SCALA_HOME" |
eb8806a2e348
define scala.home, for more robust startup of Scala tools, notably the compiler;
wenzelm
parents:
34790
diff
changeset
|
125 |
|
34780 | 126 |
declare -a ARGS; eval "ARGS=($JEDIT_OPTIONS)" |
34333 | 127 |
|
34780 | 128 |
declare -a OPTIONS; eval "OPTIONS=($ISABELLE_JEDIT_OPTIONS)" |
129 |
getoptions "${OPTIONS[@]}" |
|
130 |
||
131 |
getoptions "$@" |
|
34333 | 132 |
shift $(($OPTIND - 1)) |
133 |
||
134 |
||
135 |
# args |
|
136 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
137 |
while [ "$#" -gt 0 ] |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
138 |
do |
40574
226563829580
refrain from opening Scratch.thy by default, to avoid bombing the editor with old/long theory text;
wenzelm
parents:
40565
diff
changeset
|
139 |
ARGS["${#ARGS[@]}"]="$(jvmpath "$1")" |
226563829580
refrain from opening Scratch.thy by default, to avoid bombing the editor with old/long theory text;
wenzelm
parents:
40565
diff
changeset
|
140 |
shift |
226563829580
refrain from opening Scratch.thy by default, to avoid bombing the editor with old/long theory text;
wenzelm
parents:
40565
diff
changeset
|
141 |
done |
34333 | 142 |
|
143 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
144 |
## dependencies |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
145 |
|
43413 | 146 |
[ -e "$ISABELLE_HOME/Admin/build" ] && \ |
147 |
{ "$ISABELLE_HOME/Admin/build" "$BUILD_JARS" || exit $?; } |
|
148 |
||
149 |
PURE_JAR="$ISABELLE_HOME/lib/classes/Pure.jar" |
|
150 |
||
43285 | 151 |
pushd "$JEDIT_HOME" >/dev/null || failed |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
152 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
153 |
JEDIT_JAR="$ISABELLE_JEDIT_BUILD_HOME/contrib/$ISABELLE_JEDIT_BUILD_VERSION/jedit.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
154 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
155 |
JEDIT_JARS=( |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
156 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/Console.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
157 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/ErrorList.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
158 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/Hyperlinks.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
159 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/SideKick.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
160 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/cobra.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
161 |
"$ISABELLE_JEDIT_BUILD_HOME/contrib/js.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
162 |
) |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
163 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
164 |
SCALA_JARS=( |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
165 |
"$SCALA_HOME/lib/scala-compiler.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
166 |
"$SCALA_HOME/lib/scala-library.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
167 |
"$SCALA_HOME/lib/scala-swing.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
168 |
) |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
169 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
170 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
171 |
# target |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
172 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
173 |
TARGET="dist/jars/Isabelle-jEdit.jar" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
174 |
|
43384 | 175 |
declare -a UPDATED=() |
176 |
||
43285 | 177 |
if [ "$BUILD_JARS" = jars_fresh ]; then |
178 |
OUTDATED=true |
|
179 |
else |
|
180 |
OUTDATED=false |
|
43368
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
181 |
if [ ! -e "$TARGET" ]; then |
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
182 |
OUTDATED=true |
43384 | 183 |
else |
184 |
if [ -n "$ISABELLE_JEDIT_BUILD_HOME" ]; then |
|
43454 | 185 |
declare -a DEPS=("$JEDIT_JAR" "${JEDIT_JARS[@]}" "$PURE_JAR" "${SOURCES[@]}" "${RESOURCES[@]}") |
43384 | 186 |
else |
43454 | 187 |
declare -a DEPS=("$PURE_JAR" "${SOURCES[@]}" "${RESOURCES[@]}") |
43384 | 188 |
fi |
189 |
for DEP in "${DEPS[@]}" |
|
43368
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
190 |
do |
43384 | 191 |
[ ! -e "$DEP" ] && fail "Missing file: $DEP" |
192 |
[ "$DEP" -nt "$TARGET" ] && { |
|
193 |
OUTDATED=true |
|
194 |
UPDATED["${#UPDATED[@]}"]="$DEP" |
|
195 |
} |
|
43368
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
196 |
done |
0dc67b3cf8a5
check source dependencies only if jedit_build component is available;
wenzelm
parents:
43320
diff
changeset
|
197 |
fi |
43285 | 198 |
fi |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
199 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
200 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
201 |
# build |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
202 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
203 |
if [ "$OUTDATED" = true ] |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
204 |
then |
43405 | 205 |
echo "###" |
206 |
echo "### Building Isabelle/jEdit ..." |
|
207 |
echo "###" |
|
208 |
||
43384 | 209 |
[ "${#UPDATED[@]}" -gt 0 ] && { |
43405 | 210 |
echo "Changed files:" |
43384 | 211 |
for FILE in "${UPDATED[@]}" |
212 |
do |
|
213 |
echo " $FILE" |
|
214 |
done |
|
215 |
} |
|
216 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
217 |
[ -z "$ISABELLE_JEDIT_BUILD_HOME" ] && \ |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
218 |
fail "Unknown ISABELLE_JEDIT_BUILD_HOME -- missing auxiliary component" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
219 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
220 |
rm -rf dist || failed |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
221 |
mkdir -p dist dist/classes || failed |
43287 | 222 |
|
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
223 |
cp -a "$ISABELLE_JEDIT_BUILD_HOME/contrib/$ISABELLE_JEDIT_BUILD_VERSION/." dist/. |
43320 | 224 |
cp -a "${RESOURCES[@]}" dist/classes/. |
43287 | 225 |
cp src/jEdit.props dist/properties/. |
226 |
cp -a src/modes/. dist/modes/. |
|
43391 | 227 |
cp -a "$SCALA_HOME/misc/scala-tool-support/jedit/modes/scala.xml" dist/modes/. |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
228 |
|
43391 | 229 |
perl -i -e 'while (<>) { |
230 |
if (m/NAME="javacc"/) { |
|
231 |
print qq,<MODE NAME="isabelle" FILE="isabelle.xml" FILE_NAME_GLOB="*.thy"/>\n\n,; |
|
232 |
print qq,<MODE NAME="isabelle-session" FILE="isabelle-session.xml" FILE_NAME_GLOB="session.root"/>\n\n,; } |
|
233 |
elsif (m/NAME="scheme"/) { |
|
234 |
print qq,<MODE NAME="scala" FILE="scala.xml" FILE_NAME_GLOB="*.scala" />\n\n,; } |
|
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
235 |
print; }' dist/modes/catalog |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
236 |
|
43521
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
43454
diff
changeset
|
237 |
cp -a "${JEDIT_JARS[@]}" "$SCALA_HOME/lib/scala-compiler.jar" dist/jars/. || failed |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
238 |
( |
43521
d477b92109b8
provide Isabelle/Scala environment as Java extension, instead of user classpath
wenzelm
parents:
43454
diff
changeset
|
239 |
for JAR in "$JEDIT_JAR" "${JEDIT_JARS[@]}" "$PURE_JAR" "$SCALA_HOME/lib/scala-compiler.jar" |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
240 |
do |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
241 |
CLASSPATH="$CLASSPATH:$JAR" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
242 |
done |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
243 |
CLASSPATH="$(jvmpath "$CLASSPATH")" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
244 |
exec "$SCALA_HOME/bin/scalac" -unchecked -deprecation \ |
43320 | 245 |
-d dist/classes -target:jvm-1.5 "${SOURCES[@]}" |
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
246 |
) || fail "Failed to compile sources" |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
247 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
248 |
cd dist/classes |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
249 |
jar cf "../jars/Isabelle-jEdit.jar" * || failed |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
250 |
cd ../.. |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
251 |
rm -rf dist/classes |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
252 |
fi |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
253 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
254 |
popd >/dev/null |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
255 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
256 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
257 |
## main |
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
258 |
|
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
259 |
# perspective |
34880 | 260 |
|
261 |
mkdir -p "$JEDIT_SETTINGS/DockableWindowManager" |
|
262 |
||
263 |
if [ ! -e "$JEDIT_SETTINGS/perspective.xml" ]; then |
|
264 |
cat > "$JEDIT_SETTINGS/DockableWindowManager/perspective-view0.xml" <<EOF |
|
40155
0b57e3d9bc62
dock isabelle-session at bottom (again, cf. 37bdc2220cf8) to ensure that controls are fully visible;
wenzelm
parents:
39815
diff
changeset
|
265 |
<DOCKING LEFT="" TOP="" RIGHT="" BOTTOM="isabelle-session" LEFT_POS="0" TOP_POS="0" RIGHT_POS="250" BOTTOM_POS="250" /> |
34880 | 266 |
EOF |
267 |
cat > "$JEDIT_SETTINGS/perspective.xml" <<EOF |
|
268 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
269 |
<!DOCTYPE PERSPECTIVE SYSTEM "perspective.dtd"> |
|
270 |
<PERSPECTIVE> |
|
271 |
<VIEW PLAIN="FALSE"> |
|
272 |
<GEOMETRY X="0" Y="35" WIDTH="1072" HEIGHT="787" EXT_STATE="0" /> |
|
273 |
</VIEW> |
|
274 |
</PERSPECTIVE> |
|
275 |
EOF |
|
276 |
fi |
|
277 |
||
278 |
||
43284
04d473e883df
build jedit as part of regular startup script (in that case depending on jedit_build component);
wenzelm
parents:
41380
diff
changeset
|
279 |
# run |
34333 | 280 |
|
43285 | 281 |
[ "$BUILD_ONLY" = true ] || { |
282 |
case "$JEDIT_LOGIC" in |
|
283 |
/*) |
|
284 |
;; |
|
285 |
*/*) |
|
286 |
JEDIT_LOGIC="$(pwd -P)/$JEDIT_LOGIC" |
|
287 |
;; |
|
288 |
esac |
|
34333 | 289 |
|
43285 | 290 |
export JEDIT_LOGIC JEDIT_PRINT_MODE |
34333 | 291 |
|
43285 | 292 |
exec "$ISABELLE_TOOL" java "${JAVA_ARGS[@]}" \ |
293 |
-jar "$(jvmpath "$JEDIT_HOME/dist/jedit.jar")" \ |
|
294 |
"-settings=$(jvmpath "$JEDIT_SETTINGS")" "${ARGS[@]}" |
|
295 |
} |