From e56ba91b5b9bd3ed5b7b6d703368d482ca57fec2 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 19 Jan 2018 10:37:08 +1000 Subject: [PATCH] Updates to script and version bump --- dist/ansis/bulletin1.ans | Bin 5766 -> 5744 bytes setup.sh | 32 ++++++++++++++++++++------------ src/bbs.h | 2 +- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/dist/ansis/bulletin1.ans b/dist/ansis/bulletin1.ans index 69e752f907182b69c9c1ef039def3b204250ab67..12ccc0126faeb3eb3e3ed25416028bae5b1bf659 100644 GIT binary patch delta 70 zcmZqE{h+hq8$auv`}glCO#aPZ%qbmhXl-ngd;iYla)Cx}DDSp{!tKe-g2h}4_Z9Bn WSCEc2$lW|m@DvNvd(p{BVk!U|og0k+ delta 92 zcmeyM)26%O8$avq`}gnPnf#l-m{UPPI@-|M*d%vyxj-W~jB{H-VKTE|F_3GJ3lqDK V%u#^wHa7^KVqszxo9rW|0stQE9q9l7 diff --git a/setup.sh b/setup.sh index 6ffcd8d..c9f20dd 100755 --- a/setup.sh +++ b/setup.sh @@ -61,15 +61,23 @@ printstuff "Please enter the name of your BBS:" read -e bbsname -sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/bbs.ini -sed -i "s/BBS Name = Magicka BBS/BBS Name = ${bbsname}/g" config/bbs.ini -sed -i "s/Sysop Name = sysop/Sysop Name = ${handle}/g" config/bbs.ini -sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/localmail.ini -sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/filesgen.ini -sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/illusionnet.ini -sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" utils/magiedit/magiedit.sh -sed -i "s@/home/andrew/MagickaBBS@${PWD}@g" scripts/login_stanza.lua -sed -i "s/MagiChat Server = localhost/; MagiChat Server = localhost/g" config/bbs.ini -sed -i "s/Default Tagline = Brought to you by Another Magicka BBS!/Default Tagline = ${bbsname}/g" config/bbs.ini -sed -i "s/echomail.out/mail.out/g" config/bbs.ini -sed -i "s/netmail.out/mail.out/g" config/bbs.ini +PLATFORM=`uname` + +if [[ "$PLATFORM" == 'FreeBSD' ]] || [[ "$PLATFORM" == 'Darwin' ]]; then + SED = gsed +else + SED = sed +fi + +$SED -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/bbs.ini +$SED -i "s/BBS Name = Magicka BBS/BBS Name = ${bbsname}/g" config/bbs.ini +$SED -i "s/Sysop Name = sysop/Sysop Name = ${handle}/g" config/bbs.ini +$SED -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/localmail.ini +$SED -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/filesgen.ini +$SED -i "s@/home/andrew/MagickaBBS@${PWD}@g" config/illusionnet.ini +$SED -i "s@/home/andrew/MagickaBBS@${PWD}@g" utils/magiedit/magiedit.sh +$SED -i "s@/home/andrew/MagickaBBS@${PWD}@g" scripts/login_stanza.lua +$SED -i "s/MagiChat Server = localhost/; MagiChat Server = localhost/g" config/bbs.ini +$SED -i "s/Default Tagline = Brought to you by Another Magicka BBS!/Default Tagline = ${bbsname}/g" config/bbs.ini +$SED -i "s/echomail.out/mail.out/g" config/bbs.ini +$SED -i "s/netmail.out/mail.out/g" config/bbs.ini diff --git a/src/bbs.h b/src/bbs.h index 4b3f502..efe4e7a 100644 --- a/src/bbs.h +++ b/src/bbs.h @@ -12,7 +12,7 @@ #include "jamlib/jam.h" #define VERSION_MAJOR 0 -#define VERSION_MINOR 7 +#define VERSION_MINOR 8 #define VERSION_STR "alpha" #define NETWORK_FIDO 1