From 43be1608855687450bade67436ceccca2ae4de17 Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Fri, 25 Mar 2011 18:42:10 -0400 Subject: [PATCH] connect.txt generation with preparedist.sh now.. This will give us the right version number in the connect.txt --- utils/makeconnect.sh | 21 +++++++++++++++++++++ utils/preparedist.sh | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 utils/makeconnect.sh 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 ) + -- 2.30.2