| Anonymous | Login | Signup for a new account | 11-10-2008 10:58 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0000733 | [BusyBox] Other | major | always | 02-18-06 23:43 | 02-20-06 03:13 | ||||
| Reporter | rfelker | View Status | public | ||||||
| Assigned To | BusyBox | ||||||||
| Priority | normal | Resolution | not fixable | ||||||
| Status | closed | Product Version | 1.01 | ||||||
| Summary | 0000733: unreliable/nonportable script generating bb_config.h (fix included) | ||||||||
| Description |
The sed command used for generating bb_config.h from config.h does not work on my system. I'm not sure if the problem is at the makefile level (GNU make 3.79), the shell level (bash 1.14.7), or the sed level (GNU sed 3.02) (I forget the makefile quoting semantics), but the script produces "n" instead of newlines when attempting to break lines. Here is much simpler code that will do the same thing portably: @sed -e 's/#undef CONFIG_\(.*\)/#define ENABLE_\1 0/' \ -e '/#define CONFIG_/{;p;s/#define CONFIG_/#define ENABLE_/;}' \ < $< >> $@ instead of the current: @sed -e 's/#undef CONFIG_\(.*\)/#define ENABLE_\1 0/' \ -e 's/#define CONFIG_\(.*\)/#define CONFIG_\1\n#define ENABLE_\1/' \ < $< >> $@ Additional simplifications could be done too, of course. |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |