-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdeploy.sh
executable file
·61 lines (61 loc) · 1.27 KB
/
deploy.sh
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
#!/bin/sh
if [ "$1" = "clean" ]
then
make clean
make distclean
rm depcomp configure missing
rm Makefile.in probed/Makefile.in
rm install-sh aclocal.m4
rm -r autom4te.cache
rm manager/*.pyc
rm manager/slang/*.pyc
rm sla-ng.deb
exit
fi
if [ "$1" = "install" ]
then
autoreconf --install
exit
fi
if [ "$1" = "debian" ]
then
make
if [ "$?" -ne 0 ]
then
$0 install
./configure
make
fi
rm -r debian/usr/
rm -r debian/etc/sla-ng
mkdir -p debian/usr/lib/python2.6/dist-packages
mkdir -p debian/usr/bin
mkdir -p debian/etc/sla-ng
cp probed/probed debian/usr/bin
cp appliance/ui.sh debian/usr/bin/
cp manager/sla-ng-manager debian/usr/bin/sla-ng-manager
cp manager/sla-ng-view debian/usr/bin/sla-ng-view
cp manager/manager.conf debian/etc/sla-ng
cp -r manager/slang debian/usr/lib/python2.6/dist-packages
fakeroot dpkg-deb --build debian sla-ng.deb
exit
fi
if [ "$1" = "lint" ]
then
cd probed
I="-I/usr/include/libxml2"
D="-D__gnuc_va_list=va_list +posixlib -mts external/posixlint"
splint main.c net.c loop.c tstamp.c util.c client.c $I $D
splint unix.c +unixlib
exit
fi
if [ "$1" = "release" ]
then
rm ../slang.tgz
$0 clean
$0 install
rm -r autom4te.cache
tar -C ../ -zcf ../slang.tgz slang
exit
fi
echo "$0 clean | install | lint | release | debian"