diff options
| author | svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b <svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-03-28 21:59:56 +0000 |
|---|---|---|
| committer | svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b <svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-03-28 21:59:56 +0000 |
| commit | 55bf4dbcabf378e9472b7d31d6edf87f6ac853e9 (patch) | |
| tree | 7a9454ea6b8750256e242cf6d5fba3ca7a4b5044 /modules/compile.sh | |
Initial Anope Import
git-svn-id: svn://svn.anope.org/anope/trunk@1 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'modules/compile.sh')
| -rwxr-xr-x | modules/compile.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/compile.sh b/modules/compile.sh new file mode 100755 index 000000000..912780b65 --- /dev/null +++ b/modules/compile.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# Disabled for Anope 1.6 until we figure out a better way to +# download modules safely. +# if [ "$1" = "getmods" ] ; then +# wget -nv -r -l 1 -A c -nd -nc http://modules.anope.org/download/ +# rm -f robots.txt +# exit 0 +# fi + +if [ ! -f ../Makefile.inc ]; then + echo "" + echo "*** ERROR: Unable to find ../Makefile.inc. You must ./configure Anope before" + echo "*** ERROR: compiling modules. Please read the INSTALL document for details." + echo "" + exit 1 +fi + +echo -n "SRCS=" > ./Makefile.inc +FIRST=1 +for oldfile in *.c +do + if [ "$FIRST" = 1 ] ; then + echo -n " "$oldfile >> ./Makefile.inc + else + echo "\\" >> ./Makefile.inc + echo -n " " $oldfile >> ./Makefile.inc + fi + FIRST=0 +done +echo "" >> ./Makefile.inc + +make + +if [ "$1" = "install" ] ; then + make install +fi |
