From 1038e41cbf2faec693054abdc144174c73ccafcb Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Thu, 24 Mar 2011 20:51:22 -0400 Subject: [PATCH] Auto-generate source/header files in preparedist.sh --- utils/preparedist.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/utils/preparedist.sh b/utils/preparedist.sh index ad09431..4cf6d46 100755 --- a/utils/preparedist.sh +++ b/utils/preparedist.sh @@ -17,15 +17,26 @@ chmod 755 utils/mkvershlp.pl 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 -- 2.30.2