From: Ari Johnson Date: Fri, 25 Mar 2011 00:51:22 +0000 (-0400) Subject: Auto-generate source/header files in preparedist.sh X-Git-Tag: 0.73p2~8 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=1038e41cbf2faec693054abdc144174c73ccafcb;p=cobramush.git Auto-generate source/header files in preparedist.sh --- 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