From: Rick Bird Date: Fri, 25 Mar 2011 22:42:10 +0000 (-0400) Subject: connect.txt generation with preparedist.sh now.. This will X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=43be1608855687450bade67436ceccca2ae4de17;p=cobramush.git connect.txt generation with preparedist.sh now.. This will give us the right version number in the connect.txt --- diff --git a/utils/makeconnect.sh b/utils/makeconnect.sh new file mode 100755 index 0000000..ef2e395 --- /dev/null +++ b/utils/makeconnect.sh @@ -0,0 +1,21 @@ +#!/bin/sh +cat > connect.txt < + + +EOSH + +version=`grep VERSION hdrs/version.h | sed 's/^.*"\(.*\)[p].*$/\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..41078c9 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 +cd ../../ +( utils/makeconnect.sh ; mv connect.txt game/txt ) +