gen_action_registry.sh incorrectly generates Action Registry
Bug #379814 reported by
Nate Michael
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Obsolete Junk | ||||||
Peekabot-0.6.x-20090506-215405 |
Invalid
|
Undecided
|
Unassigned | |||
peekabot | Status tracked in Trunk | |||||
Trunk |
Fix Released
|
Medium
|
Staffan Gimåker |
Bug Description
When compiling the current trunk (r731), the script for generating the action registry creates an ActionRegistry.cc file that cannot be compiled. The reason for this is the definition of the "class" and "id" variables. The fix for my system is to change lines 40-41 of gen_action_
class="$(echo $f | sed "s:actions/::" | sed "s:.hh::")"
id="$(echo $foo | sed "s/PEEKABOT_
Before this change, the sed commands were extracting the full values of $f and $foo. After the fix the class and id variables are set correctly. This is probably a cross-platform issue, but for completeness the system is Mac OS 10.5.7.
To post a comment you must log in.
Thanks for the report. Unfortunately, your fix does not work well with GNU sed. Does the original code work if you use "sed -E" instead?