1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Config -advanced for --with-moduleswhich

This commit is contained in:
aquanight
2007-06-22 15:17:22 +00:00
parent 83384cef2a
commit ca86e3b898
2 changed files with 36 additions and 0 deletions
+1
View File
@@ -1822,3 +1822,4 @@ MOTDs
params, int flags), which will add a command that gets the command that
the user sent along in "sentcmd".
- Fixed typo in new module build switch
- Added a Config -advanced prompt for --with-moduleswhich=
+35
View File
@@ -44,6 +44,7 @@ fi
if [ "$DISABLEEXTBANSTACKING" = "1" ]; then
ARG="$ARG--with-disable-extendedban-stacking ";
fi
ARG="$ARG--with-moduleswhich=$MODULESWHICH "
fi
if [ "$NOSPOOF" = "1" ] ; then
ARG="$ARG--enable-nospoof "
@@ -306,6 +307,38 @@ while [ -z "$TEST" ] ; do
esac
done
TEST=""
while [ -z "$TEST" ]; do
if [ "$MODULESWHICH" = "onlycommands" ]; then
TEST="commands"
elif [ "$MODULESWHICH" = "onlymodules" ]; then
TEST="modules"
else
TEST="both"
fi
echo ""
echo "Do you wish to compile commands.so, the m_*.so modules, or both?"
echo $n "[$TEST] -> $c"
read cc
if [ -z "$cc" ]; then
cc=$TEST
fi
case "$cc" in
commands|commands.so|onlycommands|commandsonly)
MODULESWHICH="onlycommands"
;;
modules|m_\*.so|onlymodules|modulesonly)
MODULESWHICH="onlymodules"
;;
both|commandsandmodules|modulesandcommands)
MODULESWHICH="commandsandmodules"
;;
*)
echo ""
echo "Unrecognized response"
TEST=""
esac
done
}
c=""
n=""
@@ -335,6 +368,7 @@ NOOPEROVERRIDE=""
DISABLEUSERMOD=""
OPEROVERRIDEVERIFY=""
DISABLEEXTBANSTACKING=""
MODULESWHICH=""
EXTRAPARA=""
if [ "`eval echo -n 'a'`" = "-n a" ] ; then
c="\c"
@@ -872,6 +906,7 @@ NOOPEROVERRIDE="$NOOPEROVERRIDE"
DISABLEUSERMOD="$DISABLEUSERMOD"
OPEROVERRIDEVERIFY="$OPEROVERRIDEVERIFY"
DISABLEEXTBANSTACKING="$DISABLEEXTBANSTACKING"
MODULESWHICH="$MODULESWHICH"
EXTRAPARA="$EXTRAPARA"
ADVANCED="$ADVANCED"
__EOF__