chmod 755 utils/update-cnf.pl
chmod 755 utils/update.pl
-# Step 2: run metaconfig
+# Step 2: create auto-generated source/header files
+echo "Generating source and header files..."
+cd src
+swig -o mushlua_wrap.c -lua mushlua.i
+cd ..
+
+perl utils/mkcmds.pl all
+mv hdrs/cmds.h win32/
+mv hdrs/switches.h win32/
+mv hdrs/funs.h win32/
+
+# Step 3: run metaconfig
echo "Running metaconfig to generate Configure and config_h.SH..."
metaconfig -M
-# Step 3: generate changes.txt
+# Step 4: generate changes.txt
echo "Generating changes.txt..."
( cd game/txt && ruby genchanges.rb )
-# Step 4: index help files
+# Step 5: index help files
echo "Indexing help, news, and events..."
cd game/txt
for i in hlp nws evt ; do