unrealircd/src/buildmod

21 lines
755 B
Plaintext
Raw Normal View History

2020-03-29 02:16:53 -07:00
#!/bin/sh
2022-01-14 21:16:34 -08:00
MAKE="$1"
2020-03-29 02:16:53 -07:00
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 ]; then
echo "Building 3rd party module $x..."
2022-01-14 21:16:34 -08:00
$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 "*****"; exit 1)
2020-03-29 02:16:53 -07:00
fi
fi
done