diff options
| author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-07-19 14:08:30 +0000 |
|---|---|---|
| committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-07-19 14:08:30 +0000 |
| commit | a1479a87757fb5e9b48f3c8bb5dd9cc247406f1a (patch) | |
| tree | 06d23a51082a398c512ed8f1e39bdac60d4dd658 /bin/register | |
| parent | 7fffea77edbe72cd66f7a55f41a3966204f9cf86 (diff) | |
BUILD : 1.7.4 (264) BUGS : N/A NOTES : Switched to autoconf - try to commit part 1
git-svn-id: svn://svn.anope.org/anope/trunk@264 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@169 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'bin/register')
| -rwxr-xr-x | bin/register | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/bin/register b/bin/register deleted file mode 100755 index 5162e44e4..000000000 --- a/bin/register +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/sh - -############################################### -# Set Variables -############################################### - -# CONFIGURATION CACHE (e.g. ../config.cache) -CACHEFILE="../config.cache" - -# REGISTRATION INFORMATION CACHE FILE (no need to alter this) -REGCACHE="register.cache" - -# SENDMAIL PATH -SENDMAIL="/usr/sbin/sendmail" - -# SCRIPT VERSION NUMBER (DO NOT ALTER) -REGISTERVERSION="1.2" - -# DO NOT CHANGE IF YOU WANT TO REGISTER WITH ANOPE -REGISTRYADDRESS="register@anope.org" - -################################################ -# END OF CONFIGURATION -# YOU ARE NOT REQUIRED TO CHANGE ANYTHING BELOW -################################################ - -if [ $0 != "./register" ] ; then - echo "Warning: Run this file while in the /bin/ directory (e.g. ./register)" - exit 1 -fi - -if [ ! -f $CACHEFILE ] ; then - echo "Warning: Configuration cache file missing. Run ./configure" - exit 1 -fi - -if [ ! -f $SENDMAIL ] ; then - echo "Warning: Sendmail cannot be found. Please open this file and set variable correctly" - exit 1; -fi - -clear - -if [ -f $REGCACHE ] ; then - echo "Previous registration cache file found. Removing..." - rm $REGCACHE -fi - - echo "##################################################" - echo "Anope registration script (v$REGISTERVERSION)" - echo "##################################################" - echo "This script allows you to register your network" - echo "with the Anope central registry. This gives us" - echo "an idea of how many networks use Anope and what options" - echo "they compile with so we can spend more time developing" - echo "options that are more widely used. Note: The options" - echo "you selected in ./configure will be sent." - echo "You will be asked a series of questions, if you wish" - echo "to be listed in the public network database all the" - echo "information will be required." - echo "NOTE: NO PRIVATE OR SENSITIVE INFORMATION WILL BE SENT" - echo "##################################################" - echo "Would you like to register? [Type YES to continue]" - read answer - -if [ $answer = "YES" ] ; then - - echo "Beginning registration..." - echo "1. What is your network name? (e.g. Anope IRC Network)" - read NETWORKNAME - echo CONNECTADDRESS=\"$NETWORKNAME\" >> $REGCACHE - echo "2. What is your network's connection address (e.g. irc.anope.org)" - read CONNECTADDRESS - echo CONNECTADDRESS=\"$CONNECTADDRESS\" >> $REGCACHE - echo "3. Primary contact email address? (e.g. irc-admin@anope.org)" - read CONTACTEMAIL - echo CONTACTEMAIL=\"$CONTACTEMAIL\" >> $REGCACHE - echo "4. What is your network's website address (e.g. http://www.anope.org)" - read WEBSITEADDRESS - echo WEBSITEADDRESS=\"$WEBSITEADDRESS\" >> $REGCACHE - echo "5. Would you like your network to be listed in a public database?" - echo "[Please type YES if you would like to be listed]" - read LISTED - echo LISTED=\"$LISTED\" >> $REGCACHE - echo "6. (Bonus Devel-Only Question) Why did the chicken cross the road?!" - read BONUS - echo BONUS=\"$BONUS\" >> $REGCACHE - echo >> $REGCACHE - echo "Processing registration..." - cat $CACHEFILE >> $REGCACHE - $SENDMAIL $REGISTRYADDRESS < $REGCACHE - if [ -f $REGCACHE ] ; then - echo "Cleaning up..." - rm $REGCACHE - fi - echo "Registration Competed. Thank you for registering Anope." - exit 0; - -fi - -echo "Registration Cancelled" |
