From 997cfb7edf2f80f95a4476920b1e97bb1bc5280d Mon Sep 17 00:00:00 2001 From: frostycoolslug Date: Sun, 27 Jul 2003 20:59:32 +0000 Subject: 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 --- makeconf | 13 +++---------- 1 file 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=;$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 "" -- cgit v1.2.3