Auto-generate connect.txt
authorAri Johnson <ari@theari.com>
Thu, 28 Apr 2011 20:17:33 +0000 (16:17 -0400)
committerAri Johnson <ari@theari.com>
Thu, 28 Apr 2011 20:17:33 +0000 (16:17 -0400)
game/txt/connect.txt [deleted file]
utils/makeconnect.sh [new file with mode: 0755]
utils/preparedist.sh

diff --git a/game/txt/connect.txt b/game/txt/connect.txt
deleted file mode 100644 (file)
index dacba48..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<This is where you announce that they've connected to your MUSH>
-<It's a good idea to include the version/patchlevel of MUSH you're running>
-<It's a good idea to include an email address for questions about the MUSH>
------------------------ CobraMUSH-v0.73 -------------------------------------
-Use create <name> <password> to create a character.
-Use connect <name> <password> to connect to your existing character.
-Use 'ch <name> <pass>' 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 (executable)
index 0000000..0e81c90
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+cat > connect.txt <<EOSH
+<This is where you announce that they've connected to your MUSH>
+<It's a good idea to include the version/patchlevel of MUSH you're running>
+<It's a good idea to include an email address for questions about the MUSH>
+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 <name> <password> to create a character.
+Use connect <name> <password> to connect to your existing character.
+Use 'ch <name> <pass>' 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
+
index e2a6ac1bf0bc96d1559e2340bfb1a852f7630141..b3b2dfecff77b0a69abd3beb7294c329d2d2618f 100755 (executable)
@@ -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