From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkQP6-0000Oo-Sx for qemu-devel@nongnu.org; Thu, 19 Mar 2009 18:07:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkQP4-0000NK-WE for qemu-devel@nongnu.org; Thu, 19 Mar 2009 18:07:56 -0400 Received: from [199.232.76.173] (port=40363 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkQP4-0000NG-N7 for qemu-devel@nongnu.org; Thu, 19 Mar 2009 18:07:54 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:58936 helo=akado.ru) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LkQP4-0005j0-8k for qemu-devel@nongnu.org; Thu, 19 Mar 2009 18:07:54 -0400 Received: from [10.0.66.9] ([10.0.66.9] verified) by fe02-cgp.akado.ru (CommuniGate Pro SMTP 5.1.16) with ESMTP id 47641858 for qemu-devel@nongnu.org; Fri, 20 Mar 2009 01:07:49 +0300 Date: Fri, 20 Mar 2009 01:07:45 +0300 (MSK) From: malc Subject: Re: [Qemu-devel] [PATCH] [RFC] Syncing documentation vs. -help vs. qemu_options table v4 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel On Wed, 18 Mar 2009, Blue Swirl wrote: > Hi, > > This version uses HOST_CC (actually a leftover from dyngen) for > compiling hxtool to support cross compiling. > > Comments? Objections? > hxtool as a shell script #!/bin/sh hxtoh() { flag=1 while read str; do case $str in HXCOMM*) ;; STEXI*|ETEXI*) flag=$(($flag^1)) ;; *) test $flag -eq 1 && echo $str ;; esac done } hxtotexi() { flag=0 while read str; do case "$str" in HXCOMM*) ;; STEXI*|ETEXI*) flag=$(($flag^1)) ;; DEFHEADING*) echo $(expr "$str" : "DEFHEADING(\(.*\))") ;; *) test $flag -eq 1 && echo $str ;; esac done } case "$1" in "-h") hxtoh ;; "-t") hxtotexi ;; *) exit 1 ;; esac -- mailto:av1474@comtv.ru