Skip to content
This repository
Newer
Older
100644 39 lines (26 sloc) 0.784 kb
e315955c »
2002-03-04 ""
1 #!/bin/sh
2
3
4 prefix=$1
5 erl=$2
256c63bc »
2003-04-28 Added the setting of etcdir
6 etcdir=$3
e315955c »
2002-03-04 ""
7
8 . ../vsn.mk
8104bc6c »
2002-03-04 ""
9 y=yaws-${YAWS_VSN}
e315955c »
2002-03-04 ""
10
8104bc6c »
2002-03-04 ""
11
12 sh ./mangle ${prefix}/lib/yaws ${erl} yaws.ss ${prefix}/bin/yaws
e315955c »
2002-03-04 ""
13 install -d ${prefix}/lib/yaws/examples/ebin
14 install -d ${prefix}/lib/yaws/examples/include
15 chmod +x ${prefix}/bin/yaws
deddbfc8 »
2003-04-10 Build chain modifications: Install target directories is now totally …
16 if [ -f ${etcdir}/yaws.conf ]; then
17 t=${etcdir}/yaws.conf.template
e315955c »
2002-03-04 ""
18 else
deddbfc8 »
2003-04-10 Build chain modifications: Install target directories is now totally …
19 t=${etcdir}/yaws.conf
e315955c »
2002-03-04 ""
20 fi
21
8104bc6c »
2002-03-04 ""
22 sh ./mangle ${prefix}/lib/yaws ${erl} yaws.conf.template ${t}
e41d79b4 »
2003-05-04 ""
23
24
90111837 »
2003-05-04 ""
25 if [ -f /etc/gentoo-release ]; then
26 cp gentoo/init.d.yaws ${etcdir}/init.d/yaws
27 cp gentoo/conf.d.yaws ${etcdir}/conf.d/yaws
28 elif [ -f /etc/redhat-release ]; then
29 install -d ${etcdir}/init.d
30 cp yaws.init.d ${etcdir}/init.d/yaws
31 chmod +x ${etcdir}/init.d/yaws
32 else
33 echo "Don't know how to make /etc/init scrips for this system"
63772226 »
2002-06-16 ""
34 fi
e315955c »
2002-03-04 ""
35
e41d79b4 »
2003-05-04 ""
36
90111837 »
2003-05-04 ""
37
38
Something went wrong with that request. Please try again.