summaryrefslogtreecommitdiff
path: root/makeconf
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2003-07-27 20:59:32 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2003-07-27 20:59:32 +0000
commit997cfb7edf2f80f95a4476920b1e97bb1bc5280d (patch)
treeb84886eba00c26b8e4c5912ff36a6f0d0522658c /makeconf
parentd45c44803a443fed1d8931b381ed498f913eab53 (diff)
Removed the need for Perl (Again, 2ce in one night)
AZ! Pick up your bags and walk :p (j/k) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@178 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'makeconf')
-rwxr-xr-xmakeconf13
1 files changed, 3 insertions, 10 deletions
diff --git a/makeconf b/makeconf
index 7250a3c98..3f058892c 100755
--- a/makeconf
+++ b/makeconf
@@ -11,12 +11,6 @@
echo "Configuring Default Values"
-PERL=`which perl`
-if [ "$PERL" = "" ] ; then
- echo "You require perl to run this program."
- exit;
-fi
-
ME=`pwd`
SERV_NAME="my.server.name"
SERV_DESC="My InspIRCd Server"
@@ -577,10 +571,9 @@ echo "The Following Modules are avaliable:"
echo ""
MODLINE=""
for module in src/modules/*.cpp ; do
- mod=`perl -e '$a='$module';print substr($a,0,length($a)-3)'`
- dmod=`perl -e '$a="'$mod.so'";while (length($a)<30) { $a = "$a ";}; print $a;'`
- desc=`perl -e 'open (F, "<'$module'");local($/)=undef;$blah=<F>;$blah=~/\$ModDesc(.*)\*\//;print substr($1,13,length($1));close F;'`
- echo -e "\033[1;32m$dmod\033[0;37m$desc"
+ desc=`grep '$ModDesc:' $module | sed 's/\/\* $ModDesc://' | sed 's/\*\///'`
+ mod=`echo $module | sed 's/.cpp/.so/' | sed 's/src\/modules\///'`
+ echo -e "\033[1;32m$mod\t\t\033[0;37m$desc"
done
echo ""