Hi Phil,
Sorry for late reaction, but msl already seemed to have read my thoughts on this
Tested your script, and it seems to do the job very nicely.
A suggestion: include commented-out 'default section' in the header of platform-camera.h.
AFAIK most 'porters' will start by copying a reference camera, and this will assure
they get to see all the available defines. This implies, of course, that the
default section contains all of them, preferably with description ...
(extract from camprops_xref.log for CHDK trunk 1132)
......
Properties NOT INCLUDED, because MISSING in Default Values: * ASPECT_GAMES_XCORRECTION * ASPECT_GAMES_XCORRECTION(x) * ASPECT_GAMES_YCORRECTION * ASPECT_GAMES_YCORRECTION(y) * ASPECT_GRID_XCORRECTION * ASPECT_GRID_XCORRECTION(x) * ASPECT_GRID_YCORRECTION * ASPECT_GRID_YCORRECTION(y) * CAM_ACTIVE_AREA_X1 * CAM_ACTIVE_AREA_X2 * CAM_ACTIVE_AREA_Y1 * CAM_ACTIVE_AREA_Y2 * cam_CalibrationIlluminant1 * cam_CFAPattern * CAM_COLORMATRIX1 * CAM_JPEG_HEIGHT * CAM_JPEG_WIDTH * CAM_STARTUP_CRASH_FILE_OPEN_FIX * DNG_EXT_FROM * DNG_EXT_TO * GAMES_SCREEN_HEIGHT * GAMES_SCREEN_WIDTH * OPT_CURVES * PARAM_CAMERA_NAME * SYNCHABLE_REMOTE_NOT_ENABLED
......
On the other hand, this would seriously increase the amount of code lines ...
I'm currently rewriting my parsing code to adapt to the new situation, and will soon issue
a small fix to prevent CHDK-Shell from falling over in case this gets implemented before
it's ready.
just my 2 cents,
wim