blob: b91f6bf3bb6521e6aabb2802d68fa2548c03c44f (
plain)
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
|
#!/bin/sh
SERVICESDIR=$1
SRCDIR=$2
echo Installing JSON-RPC services in $SERVICESDIR
cd $SRCDIR/../services || exit 1
mkdir -p $SERVICESDIR || exit 1
installdir() {
for f in $*; do
dname=`dirname $f`
echo "Installing $f in $dname"
test -d $SERVICESDIR/$dname || mkdir -p $SERVICESDIR/$dname || exit 1
cp $f $SERVICESDIR/$dname/ || exit 1
chmod 0644 $SERVICESDIR/$f || exit 1
done
}
installdir `find . -name '*.esp'`
cat << EOF
======================================================================
The JSON-RPC services have been installed.
======================================================================
EOF
exit 0
|