-
Notifications
You must be signed in to change notification settings - Fork 0
/
do_example.sh
executable file
·39 lines (37 loc) · 984 Bytes
/
do_example.sh
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
#!/bin/sh
htmlfile=$1
serveraddress=$2
if test -z $serveraddress
then
echo "aborted : server needed"
echo "$0 <htmlfile to generate> <ip address of server> <port of server>"
exit 1
fi
serverport=$3
if test -z $serverport
then
echo "aborted : port needed"
echo "$0 <htmlfile to generate> <ip address of server> <port of server>"
exit 1
fi
cat >$htmlfile <<EOF
<html>
<head>
<title>Draw Test (1.1)</title>
</head>
<body>
<h1>Draw Test (1.1)</h1>
<hr>
<applet archive="dist/lib/sharedrawweb-0.0.1.jar" code="lasnier.sharedraw.ShareDrawingEditor.class" width=400
height=400>
<param name=drawServer value=$serveraddress>
<param name=drawPort value=$serverport>
alt="Your browser understands the <APPLET> tag but isn't
running the applet, for some reason." Your browser is completely ignoring
the <APPLET> tag! </applet>
<hr>
<a href="DrawTest.java">The source</a>.
</body>
</html>
EOF
echo $htmlfile generated