1 |
|
#!/bin/sh |
2 |
|
# |
3 |
|
# dotGNU Excecution Environment -- removes 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 "${reposdir}/data/${WS}.dll" ] |
36 |
|
then |
37 |
|
echo "Webservice ${WS}.dll is not installed" |
38 |
|
else |
39 |
|
rm ${reposdir}/data/${WS}.dll |
40 |
|
fi |
41 |
|
|
42 |
|
if [ ! -r "${reposdir}/index/${WS}.dgmx" ] |
43 |
|
then |
44 |
|
echo "Webservice definition ${WS}.dgmx is not installed" |
45 |
|
else |
46 |
|
rm ${reposdir}/index/${WS}.dgmx |
47 |
|
fi |
48 |
|
|
49 |
|
|
50 |
|
echo "Webservice ${WS} removed from the DotGNU Execution Environment!" |
51 |
|
echo |