Skip to content

Commit

Permalink
""
Browse files Browse the repository at this point in the history
git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@33 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information
Claes Wikstrom committed Mar 4, 2002
1 parent 1b1c04b commit e315955
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ebin/yaws.app
@@ -1,6 +1,6 @@
{application,yaws,
[{description,"yaws WWW server"},
{vsn,"0.22"},
{vsn,"0.26"},
{modules,[yaws, yaws_app, yaws_config, yaws_server, yaws_sup, yaws_api, yaws_log, yaws_ls, yaws_debug, yaws_compile]},
{registered, []},
{mod,{yaws_app,[]}},
Expand Down
21 changes: 21 additions & 0 deletions scripts/Install
@@ -0,0 +1,21 @@
#!/bin/sh

set -x

prefix=$1
erl=$2

. ../vsn.mk

sh ./mangle ${prefix}/lib/yaws-${YAWS_VSN} ${erl} yaws.ss ${prefix}/bin/yaws
install -d ${prefix}/lib/yaws/examples/ebin
install -d ${prefix}/lib/yaws/examples/include
chmod +x ${prefix}/bin/yaws
if [ -f /etc/yaws.conf ]; then
t=/etc/yaws.conf.template
else
t=/etc/yaws.conf
fi

sh ./mangle ${prefix}/lib/yaws-${YAWS_VSN} ${erl} yaws.conf.template ${t}

9 changes: 3 additions & 6 deletions scripts/Makefile
Expand Up @@ -14,11 +14,8 @@ clean:
rm -f ../bin/yaws

install: all
@sh ./mangle $(INSTALLPREFIX)/lib/yaws $(ERL) \
yaws.ss $(INSTALLPREFIX)/bin/yaws;
chmod +x $(INSTALLPREFIX)/bin/yaws;
[ -f /etc/yaws.conf ] && mv -f /etc/yaws.conf /etc/yaws.conf.bak; \
sh ./mangle $(INSTALLPREFIX)/lib/yaws foo \
yaws.conf.template /etc/yaws.conf
sh ./Install $(INSTALLPREFIX) $(ERL)




2 changes: 1 addition & 1 deletion vsn.mk
@@ -1 +1 @@
YAWS_VSN=0.26
YAWS_VSN=0.27

0 comments on commit e315955

Please sign in to comment.