This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
TOUR
executable file
·63 lines (54 loc) · 1.96 KB
/
TOUR
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
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
# TOUR -- start the HTML tour
echo "This starts the Web tour of the OPEN LOOK, XView and NeWS Archive."
# set CDROMBASE to cwd plus a slash, used for clever hack to let
# install scripts work from TOUR and also if started locally.
CDROMBASE=`pwd`/; export CDROMBASE
echo "Setting CDROMBASE to ${CDROMBASE} for use in scripts."
echo ""
echo "We assume you have a Web browser at your disposal. In case you don't,"
echo "we provide binaries of the World Wide Web Consortium's Arena 0.9x beta"
echo "browswer for SunOS and Linux (requires libX11.so.6). Alternately,"
echo "you can FTP a viewer from ftp.ncsa.uiuc.edu or ftp.mcom.com, or many"
echo "mirror sites. Or get a new Arena viewer at http:///www.w3.org/pub/arena/."
echo "Which browser do you want to use? [mosaic]"
read browser
case "$browser" in
[aA]rena*) if [ -x /bin/sun ] && sun; then
echo "Use Arena with static hosts[s] or Resolver[r]?";
read ans junk;
case "$ans" in
s|S) browser=arena-noresolv;;
r|R) browser=arena-resolver;;
*) echo "I don't understand $ans, using arena"
browser=arena;;
esac
else browser=arena;
fi;;
"") browser=mosaic;;
# anything else - don't touch!
esac
# Some systems map names to lower case(!)
if [ ! -f TOUR -a ! -f tour ]; then
echo "You do not appear to be in the root of the CD-ROM."
echo "Please change directory to the top-level directory"
echo "of the XVIEW and OPEN LOOK CD-ROM, and try again. Thank you."
exit 1
fi
# We tell WWW lib to add our mailcap stuff.
echo "Add our MailCap stuff (support for various helper applications)? [yn] "
read ans junk
case "$ans" in
y*|Y*|ok|OK) MAILCAPS=${CDROMBASE}WebHelpers/mailcap; export MAILCAPS;;
esac
if [ -x /bin/sun ] && sun; then
PATH=`pwd`/bin.sun:$PATH; export PATH
elif [ -f /vmlinux ]
then
PATH=`pwd`/bin.linux:$PATH; export PATH
else
echo "Not Sun or Linux, assuming you have the browser in your PATH..."
fi
echo "OK, launching a browser, or trying to..."
set -x
exec $browser file://localhost`pwd`/index.html