1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 17:46:37 +02:00
Files
anope/modules/compile.sh
T
svn svn@31f1291d-b8d6-0310-a050-a5561fc1590b 55bf4dbcab 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
2004-03-28 21:59:56 +00:00

38 lines
801 B
Bash
Executable File

#!/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