File: install-adonthell

package info (click to toggle)
adonthell-data 0.3.4.cvs.20080529-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 15,196 kB
  • ctags: 443
  • sloc: python: 4,975; sh: 3,720; makefile: 401; sed: 16
file content (54 lines) | stat: -rwxr-xr-x 1,125 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

if test -t 0
then :
else
	alert 'Please run install-adonthell from Terminal!'
	exit 1
fi

echo

if test -e 'adonthell' 
then :
else
	echo '*** Please run install-adonthell from within the wastesedge-0.3.3 directory!'
	echo
	exit 1
fi

mydir=`pwd`
myapp="${mydir}/adonthell-wastesedge"

echo "Creating start script ..."

rm -f $myapp
echo -e "#!/bin/sh\n\ncd ${mydir}\n./adonthell wastesedge" > $myapp
settype -t application/x-vnd.Adonthell-Wastesedge $myapp
xres -o adonthell ${mydir}/wastesedge.rsrc
mimeset -f adonthell
chmod 755 $myapp

echo "Creating Desktop shortcut ..."

rm -f "/boot/home/Desktop/Waste's Edge" 
ln -s $myapp "/boot/home/Desktop/Waste's Edge" 

echo "Creating Application menu entry ..."

rm -f "/boot/apps/Waste's Edge"
ln -s $myapp "/boot/apps/Waste's Edge" 

rm -f "/boot/beos/apps/Waste's Edge"
ln -s $myapp "/boot/beos/apps/Waste's Edge" 

echo
echo "Okay, now you are ready to launch Adonthell - Waste's Edge."
echo "To change the program settings, please edit the config file"
echo
echo "    $mydir/adonthellrc"
echo
echo "with your favourite text editor."
echo
echo "Have Fun!"
echo