1 |
|
#!/bin/sh |
2 |
|
# |
3 |
|
# dotGNU Excecution Environment -- installs webservice |
4 |
|
# |
5 |
|
# Copyright (C) 2001, 2003 dotGNU Project |
6 |
|
# |
7 |
|
# This program is free software; you can redistribute it and/or modify |
8 |
|
# it under the terms of the GNU General Public License as published by |
9 |
|
# the Free Software Foundation; either version 2 of the License, or |
10 |
|
# (at your option) any later version. |
11 |
|
# |
12 |
|
# This program is distributed in the hope that it will be useful, |
13 |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
|
# GNU General Public License for more details. |
16 |
|
# |
17 |
|
# You should have received a copy of the GNU General Public License |
18 |
|
# along with this program; if not, write to the Free Software |
19 |
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 |
|
# |
21 |
|
# Authors: |
22 |
|
# Chris Smith |
23 |
|
# Nicolai P Guba |
24 |
|
# |
25 |
|
# $Revision$ |
26 |
|
# |
27 |
|
|
28 |
|
prefix=@prefix@ |
29 |
|
exec_prefix=@exec_prefix@ |
30 |
|
datadir=@datadir@/dgee |
31 |
|
reposdir=@REPOSDIR@ |
32 |
|
|
33 |
|
WS=$1 |
34 |
|
|
35 |
|
if [ ! -r "${WS}.dll" ] |
36 |
|
then |
37 |
|
echo "Webservice ${WS}.dll does not exist" |
38 |
|
exit 1 |
39 |
|
fi |
40 |
|
|
41 |
|
if [ ! -r "${WS}.dgmx" ] |
42 |
|
then |
43 |
|
echo "Webservice definition ${WS}.dgmx does not exist" |
44 |
|
echo "Please run csdgmx (or appropriate tool) to generate dgmx file" |
45 |
|
exit 1 |
46 |
|
fi |
47 |
|
|
48 |
|
cp ${WS}.dll ${reposdir}/data |
49 |
|
cp ${WS}.dgmx ${reposdir}/index |
50 |
|
|
51 |
|
echo "Webservice ${WS} installed!" |
52 |
|
echo |
53 |
|
echo "Access http://127.0.0.1/${WS}.dgmx to view documentation." |
54 |
|
echo |