File: INSTALL

package info (click to toggle)
roleplaying 2.0-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 16,620 kB
  • ctags: 1,039
  • sloc: tcl: 7,155; cpp: 2,709; ansic: 2,227; makefile: 559; sh: 330; csh: 3
file content (126 lines) | stat: -rwxr-xr-x 4,617 bytes parent folder | download
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/sh
#* 
#* ------------------------------------------------------------------
#* Role PlayingDB V2.0 by Deepwoods Software
#* ------------------------------------------------------------------
#* INSTALL - Installer script
#* Created by Robert Heller on Tue Jul 13 18:36:48 1999
#* ------------------------------------------------------------------
#* Modification History: 
#* $Log: INSTALL,v $
#* Revision 1.1  1999/07/13 19:13:24  heller
#* Initial revision
#*
#* ------------------------------------------------------------------
#* Contents:
#* ------------------------------------------------------------------
#*  
#*     Role Playing DB -- A database package that creates and maintains
#* 		       a database of RPG characters, monsters, treasures,
#* 		       spells, and playing environments.
#* 
#*     Copyright (C) 1995,1998,1999  Robert Heller D/B/A Deepwoods Software
#* 			51 Locke Hill Road
#* 			Wendell, MA 01379-9728
#* 
#*     This program is free software; you can redistribute it and/or modify
#*     it under the terms of the GNU General Public License as published by
#*     the Free Software Foundation; either version 2 of the License, or
#*     (at your option) any later version.
#* 
#*     This program is distributed in the hope that it will be useful,
#*     but WITHOUT ANY WARRANTY; without even the implied warranty of
#*     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#*     GNU General Public License for more details.
#* 
#*     You should have received a copy of the GNU General Public License
#*     along with this program; if not, write to the Free Software
#*     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#* 
#*  
#* $Id: INSTALL,v 1.1 1999/07/13 19:13:24 heller Rel1 $

export exec_prefix=/usr/local
export prefix=/usr/local
export wish_bin=/usr/bin/wish

echo -n "Machine Dependent prefix [$exec_prefix]: "
read
if [ -n "$REPLY" ]; then
   export exec_prefix=$REPLY
fi

echo "Machine Dependent files under $exec_prefix"

echo -n "Machine Independent prefix [$prefix]: "
read
if [ -n "$REPLY" ]; then
   export prefix=$REPLY
fi

echo "Machine Independent files under $prefix"

echo -n "Wish binary [$wish_bin]: "
read
if [ -n "$REPLY" ]; then
  export wish_bin=$REPLY
fi

echo "Wish binary: $wish_bin"

echo Making directories...
/usr/bin/install -d $exec_prefix/bin $exec_prefix/lib \
		    $exec_prefix/lib/RolePlaying-2.0 \
		    $prefix/include/RolePlaying-2.0 \
		    $prefix/lib/RolePlaying-2.0/Scripts \
		    $prefix/lib/RolePlaying-2.0/Help \
		    $prefix/doc/RolePlaying-2.0
cd C++
cd lib
echo Installing header files...
for i in Character.h Record.h Dice.h Monster.h Spells.h Dressings.h Space.h; 
do
	 /usr/bin/install -c -m 644 $i $prefix/include/RolePlaying-2.0
done;
cd ..
cd ..
cd Doc
cd Internals
echo Installing Internals Docs
for i in CxxInternals.pdf CxxInternals.ps SwigInternals.pdf SwigInternals.ps TclInternals.pdf TclInternals.ps; 
do 
	/usr/bin/install -c -m 644 $i $prefix/doc/RolePlaying-2.0; 
done;
cd ..
cd User
echo Installing User Doc
/usr/bin/install -c -m 644 RPG_UserManual.pdf $prefix/doc/RolePlaying-2.0
/usr/bin/install -c -m 644 RPG_UserManual.ps  $prefix/doc/RolePlaying-2.0
cd ..
cd ..
cd Scripts
echo Installing Scripts
for i in pkgIndex.tcl Main.tcl DeepwoodsBanner.gif StdMenuBar.tcl RPGEdCharacter.tcl RPGEdMonster.tcl RPGEdSpell.tcl RPGEdTreasure.tcl RPGEdTrickTrap.tcl RPGEdDressing.tcl RPGEdMap.tcl RPGEdSpace.tcl RPGHelp.tcl; 
do 
	/usr/bin/install -c -m 644 $i $prefix/lib/RolePlaying-2.0/Scripts;
done;
cd ..
cd Help
echo Installing Help
for i in toc.hh intro.hh common.hh main.hh character.hh monster.hh spell.hh dressing.hh tricktrap.hh treasure.hh map.hh space.hh Help.hh GNU.hh Tutorial.hh Widgets.hh hh.index index.hh ChRoll.ppm Character.ppm CreateMap.ppm CreateSpace.ppm Dressing.ppm EditMenu.ppm FileMenu.ppm HelpMenu.ppm Main.ppm Map.ppm MenuBar.ppm Monster.ppm NewExit.ppm NewItem.ppm Space.ppm Spell.ppm Treasure.ppm TrickTrap.ppm VisitExit.ppm; 
do 
	/usr/bin/install -c -m 644 $i $prefix/lib/RolePlaying-2.0/Help;
done;
cd ..
echo Installing libraries
/usr/bin/install -c -m 644 Lib/librpg.so $exec_prefix/lib
/usr/bin/install -c -m 644 Lib/rpg.so $exec_prefix/lib/RolePlaying-2.0/
/usr/bin/install -c -m 644 Lib/pkgIndex.tcl $exec_prefix/lib/RolePlaying-2.0/
echo Installing start script

sed -e "s%@LIB_DIR@%$exec_prefix/lib%g" \
    -e "s%@LIB_DIRX@%$exec_prefix/lib/RolePlaying-2.0%g" \
    -e "s%@RPG_LIB@%$prefix/lib/RolePlaying-2.0/Scripts%g" \
    -e "s%@WISH@%$wish_bin%g" <RPG.in > /tmp/RPG
/usr/bin/install -c -m 755 /tmp/RPG $exec_prefix/bin
rm /tmp/RPG