
Hi,
Wolfgang Denk wrote:
In message 4874CE57.7090005@ge.com you wrote:
Bleah on the small C program (nothing personal, just hate to add Yet Another Program to the build process). How about using echo for prelim text (if necessary) and xxd to create the struct instead? I like making maintenance Somebody Else's Problem (SEP[1])
$ man xxd
How standard is xxd across distributions and operating systems?
Best regards,
Wolfgang Denk
In debian, it is (also) provided by the vim-common package. It looks like vim (the project) is the origin of the command. That was Harald's objection to using xxd. Unfortunately, it appears to be a reasonable objection.
$ dpkg -S /usr/bin/xxd vim-common: /usr/bin/xxd
IMHO, vim and xxd are essential programs so I'm OK with using xxd. OTOH, I understand some people actually prefer emacs and may have a problem with requiring vim to be installed. ;-/
Even though I'm an enthusiastic Emacs user, I have different reasons for my vote. As far as build dependencies go, I'd like to restrict this to the LSB standard[1]. Xdd is not in there, so thats why I vote for the small C program (unless we can adapt the script and use 'od').
Cheers Detlev
[1] http://refspecs.freestandards.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generi...