See these forum threads :
and this thread in the German CHDK forum :
(google chrome automatic translation recommended)
Orginal Incomplete Article :
Setting up a development environment on your computer is necessary when working on larger Lua scripts due to the awkwardness of testing code on the camera. (remove SD card from camera, insert into computer, save file, remove SD card, insert into camera, run code. repeat repeat repeat.)
1) install lua - http://luabinaries.luaforge.net/download.html
2)