Skip to content
Newer
Older
100644 44 lines (31 sloc) 991 Bytes
e315955 @klacke ""
authored
1 #!/bin/sh
2
3
4 prefix=$1
3a3459c @klacke ""
authored
5 installprefix=$2
6 erl=$3
7 etcdir=$4
e315955 @klacke ""
authored
8
9 . ../vsn.mk
8104bc6 @klacke ""
authored
10 y=yaws-${YAWS_VSN}
3a3459c @klacke ""
authored
11 p=${prefix}
e315955 @klacke ""
authored
12
3a3459c @klacke ""
authored
13 sh ./mangle ${prefix}/lib/yaws ${erl} yaws.ss ${installprefix}/bin/yaws
14 install -d ${installprefix}/lib/yaws/examples/ebin
15 install -d ${installprefix}/lib/yaws/examples/include
16 chmod +x ${installprefix}/bin/yaws
deddbfc Build chain modifications: Install target directories is now totally …
Mikael Karlsson authored
17 if [ -f ${etcdir}/yaws.conf ]; then
18 t=${etcdir}/yaws.conf.template
e315955 @klacke ""
authored
19 else
deddbfc Build chain modifications: Install target directories is now totally …
Mikael Karlsson authored
20 t=${etcdir}/yaws.conf
e315955 @klacke ""
authored
21 fi
22
8104bc6 @klacke ""
authored
23 sh ./mangle ${prefix}/lib/yaws ${erl} yaws.conf.template ${t}
e41d79b @klacke ""
authored
24
25
9011183 @klacke ""
authored
26 if [ -f /etc/gentoo-release ]; then
29d9882 @klacke ""
authored
27 install -d ${etcdir}/init.d/
28 install -d ${etcdir}/conf.d/
9011183 @klacke ""
authored
29 cp gentoo/init.d.yaws ${etcdir}/init.d/yaws
e06b1b5 @klacke ""
authored
30 chmod +x ${etcdir}/init.d/yaws
3a3459c @klacke ""
authored
31 sed -e "s;%prefix%;$p;g" gentoo/conf.d.yaws > ${etcdir}/conf.d/yaws
7d47975 @klacke ""
authored
32
9011183 @klacke ""
authored
33 elif [ -f /etc/redhat-release ]; then
34 install -d ${etcdir}/init.d
3a3459c @klacke ""
authored
35 sed -e "s;%prefix%;$p;g" yaws.init.d > ${etcdir}/init.d/yaws
9011183 @klacke ""
authored
36 chmod +x ${etcdir}/init.d/yaws
37 else
38 echo "Don't know how to make /etc/init scrips for this system"
6377222 @klacke ""
authored
39 fi
e315955 @klacke ""
authored
40
e41d79b @klacke ""
authored
41
9011183 @klacke ""
authored
42
43
Something went wrong with that request. Please try again.