From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Wed, 09 Jul 2008 10:42:31 -0400 Subject: [U-Boot-Users] [PATCH] add 'license' command to u-boot?commandline In-Reply-To: <20080709143030.GB4657@prithivi.gnumonks.org> References: <20080706075219.GC4167@prithivi.gnumonks.org> <20080706112836.GG4167@prithivi.gnumonks.org> <200807071400.32595.sr@denx.de> <20080709143030.GB4657@prithivi.gnumonks.org> Message-ID: <4874CE57.7090005@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Harald Welte wrote: > Hi! > > Since there has been support by Detlev and Stefan, I have modified the > patch in a way to dynamically create the include/license.h file from the > COPYING file by the use of a small C program and gzip combined with a > Makefile rule. > > What do you think now? 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 XXD(1) NAME xxd - make a hexdump or do the reverse. [snip other possibly useful flags like column] -i | -include output in C include file style. A complete static array definition is written (named after the input file), unless xxd reads from stdin. -l len | -len len stop after writing octets. Best regards, gvb [1]