pissircd/src/buildmod

22 lines
785 B
Bash
Executable File

#!/bin/sh
MAKE="$1"
echo ""
echo "Checking for updates for third party modules..."
# We can't use the "unrealircd" script, since possibly the ircd
# has not been installed to it's final location.. yet.
# So this is basically "unrealircd module upgrade --no-install":
../../ircd -m upgrade --no-install
echo ""
echo "Building all third party modules..."
for x in *.c
do
if [ "$x" != "*.c" ]; then
x="`echo $x|sed 's/\.c//'`"
if [ ! -f $x.so -o $x.c -nt $x.so -o ../../ircd -nt $x.so ]; then
rm -f $x.so
echo "Building 3rd party module $x..."
$MAKE custommodule MODULEFILE=$x || (echo "*****"; echo "Building 3rd party module $x failed."; echo "Contact the module author of the $x module (not the UnrealIRCd team), or simply delete the $PWD/$x.c file"; echo "*****")
fi
fi
done