From: Ari Johnson Date: Thu, 28 Apr 2011 20:17:33 +0000 (-0400) Subject: Auto-generate connect.txt X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=594147dd6f9578b75db51fa26c655038845821ea;p=cobramush.git Auto-generate connect.txt --- diff --git a/game/txt/connect.txt b/game/txt/connect.txt deleted file mode 100644 index dacba48..0000000 --- a/game/txt/connect.txt +++ /dev/null @@ -1,12 +0,0 @@ - - - ------------------------ CobraMUSH-v0.73 ------------------------------------- -Use create to create a character. -Use connect to connect to your existing character. -Use 'ch ' to connect hidden, and cd to connect DARK (admin) -Use QUIT to logout. -Use the WHO command to find out who is online currently. ------------------------------------------------------------------------------ -Yell at your local god to personalize this file! - diff --git a/utils/makeconnect.sh b/utils/makeconnect.sh new file mode 100755 index 0000000..0e81c90 --- /dev/null +++ b/utils/makeconnect.sh @@ -0,0 +1,21 @@ +#!/bin/sh +cat > connect.txt < + + +EOSH + +version=`grep VERSION ../../hdrs/version.h | sed 's/^.*"\(.*\)\"/\1/'` +header_string="----------------------- CobraMUSH-v$version -------------------------------------" +echo $header_string >> connect.txt +cat >> connect.txt << EOSH +Use create to create a character. +Use connect to connect to your existing character. +Use 'ch ' to connect hidden, and cd to connect DARK (admin) +Use QUIT to logout. +Use the WHO command to find out who is online currently. +----------------------------------------------------------------------------- +Yell at your local god to personalize this file! + +EOSH + diff --git a/utils/preparedist.sh b/utils/preparedist.sh index e2a6ac1..b3b2dfe 100755 --- a/utils/preparedist.sh +++ b/utils/preparedist.sh @@ -42,5 +42,8 @@ for i in hlp nws evt ; do cd .. done -cd ../.. +# Step 6: Create connect.txt file +if [ ! -f connect.txt ]; then + . ../../utils/makeconnect.sh +fi