From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Martin Date: Thu, 2 Aug 2012 10:12:31 -0700 Subject: [U-Boot] [PATCH v4 1/2] tools, config.mk: add binutils-version In-Reply-To: <201208011901.44205.vapier@gentoo.org> References: <1342655153-9023-1-git-send-email-amartin@nvidia.com> <201208011831.39578.vapier@gentoo.org> <20120801224618.GB7791@nvidia.com> <201208011901.44205.vapier@gentoo.org> Message-ID: <20120802171230.GC7791@nvidia.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Aug 01, 2012 at 04:01:41PM -0700, Mike Frysinger wrote: > On Wednesday 01 August 2012 18:46:18 Allen Martin wrote: > > But maybe I'll rewrite it in prolog just to mess with you guys > > i'd ack it if it were written in bf > -mike > Challenge accepted #!/bin/sh # # binutils-version [-p] gas-command # # Prints the binutils version of `gas-command' in a canonical 4-digit #form # such as `0222' for binutils 2.22 # gas="$*" if [ ${#gas} -eq 0 ]; then echo "Error: No assembler specified." printf "Usage:\n\t$0 \n" exit 1 fi tmp=$(mktemp) echo '>>++++[<++++++++>-]>>+++++[>+++++++++<-]>+>,[>>++++[<++++++++>-]>>+++++[>\ +++++++++<-]>+>,]<<<<<<[<<<<<<]>>>>>>[<[<+>-]>[<<-<+>>>-]<<<[>>>+<<<-]>[>+<[-]]\ >>>>>>>>]<<<<<<[<<<<<<]>>>>>[>>>>>>]><<<<<<<<<<<<[-]<[-]++++++[>++++++++<-]>.>>\ >>>>.>>>>>>>>>>>>.>>>>>>.' > $tmp $gas --version | bf -n $tmp rm $tmp -Allen -- nvpublic