#!/bin/sh
+# Bootstrap
+chmod 755 "$0"
+
SELF=`which "$0"`
DIR=`dirname "$SELF"`
cd "$DIR"
cd ..
-# Step 1: run metaconfig
+# Step 1: set appropriate scripts executable
+echo "Setting scripts executable..."
+chmod 755 utils/customize.pl
+chmod 755 utils/make_access_cnf.sh
+chmod 755 utils/mkvershlp.pl
+chmod 755 utils/update-cnf.pl
+chmod 755 utils/update.pl
+
+# Step 2: run metaconfig
echo "Running metaconfig to generate Configure and config_h.SH..."
metaconfig -M
-# Step 2: generate changes.txt
+# Step 3: generate changes.txt
echo "Generating changes.txt..."
( cd game/txt && ruby genchanges.rb )
-# Step 3: index help files
+# Step 4: index help files
echo "Indexing help, news, and events..."
cd game/txt
for i in hlp nws evt ; do