GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #4032 (Unformatted/full headers)

Back to main page of archive

Previous mail   Next mail   Formatted
Overview  10 days   Subject   Date   Thread   Author  

From owner-gpc@gnu.de  Thu Jul 13 18:45:47 2000
Return-Path: <owner-gpc@gnu.de>
Received: (from uucp@localhost)
	by goedel.fjf.gnu.de (8.8.8/8.8.8) with UUCP id SAA08993
	for frank@goedel; Thu, 13 Jul 2000 18:45:47 +0200
Received: (qmail 6304 invoked by uid 28); 13 Jul 2000 15:25:48 -0000
Delivered-To: gpc@gerwinski.de
Received: (qmail 6280 invoked from network); 13 Jul 2000 15:25:27 -0000
Received: from fcs280s.ncifcrf.gov (HELO ncisun1-nf0.ncifcrf.gov) (129.43.1.11)
  by tim.gerwinski.de with SMTP; 13 Jul 2000 15:25:27 -0000
Received: from strawberry.ncifcrf.gov (strawberry.ncifcrf.gov [129.43.6.74])
	by ncisun1-nf0.ncifcrf.gov (8.10.0/8.10.0) with ESMTP id e6DFTqG28720
	for <gpc@gnu.de>; Thu, 13 Jul 2000 11:29:52 -0400 (EDT)
Received: (from toms@localhost)
	by strawberry.ncifcrf.gov (8.9.3+Sun/8.9.1) id LAA22681
	for gpc@gnu.de; Thu, 13 Jul 2000 11:29:14 -0400 (EDT)
From: Tom Schneider <toms@ncifcrf.gov>
Message-Id: <200007131529.LAA22681@strawberry.ncifcrf.gov>
Subject: Re: gpc-20000707 djgpp native compilation
In-Reply-To: <396DDCCA.6F188243@ujf-grenoble.fr> from Maurice Lombardi at "Jul 13, 2000 05:14:18 pm"
To: gpc@gnu.de (user alias)
Date: Thu, 13 Jul 2000 11:29:14 -0400 (EDT)
X-Mailer: ELM [version 2.4ME+ PL34 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-gpc@gnu.de
Precedence: bulk
Status: O

Dear Maurice:

I noticed your complex expression:

> The relevant part of the output is (with some air interspersed)
> 
cd p/rts && c:/djgpp/bin/make.exe CC="`echo c:/djgpp/gnu/gcc-2.952/build.djg/gcc
/xgcc -Bc:/djgpp/gnu/gcc-2.952/build.djg/gcc/ -Bc:/djgpp/i586-pc-msdosdjgpp/bin/
-Ic:/djgpp/i586-pc-msdosdjgpp/include' ' | sed -e 's,-B\([^/][^:]\),-B../../\1,
g;s,^\([^/][^:]*\),../../\1,'`" PC="`echo ./xgpc -B./' ' | sed -e 's,-B\([^/][^:
]\),-B../../\1,g;s,^\([^/][^:]*\),../../\1,'`" SHELL="c:/djgpp/bin/bash.exe" CFL
AGS="-O2" AR="ar" AR_FLAGS="rc" RANLIB="ranlib" RANLIB_TEST="[ -f ranlib ] || (
[ "i586-pc-msdosdjgpp" = "i586-pc-msdosdjgpp" ] && [ -f /usr/bin/ranlib -o -f /b
in/ranlib ] )" RTSFLAGS="" DESTDIR="../.." all

Even with the space it is hard to get through!

So I thought of mentioning a trick I use:  the backslash
to break the lines into logical units:

cd p/rts && c:/djgpp/bin/make.exe CC="`echo c:/djgpp/gnu/gcc-2.952/build.djg/gcc
/xgcc -Bc:/djgpp/gnu/gcc-2.952/build.djg/gcc/ -Bc:/djgpp/i586-pc-msdosdjgpp/bin/
-Ic:/djgpp/i586-pc-msdosdjgpp/include' ' |\
cat |\
 sed -e 's,-B\([^/][^:]\),-B../../\1,
g;s,^\([^/][^:]*\),../../\1,'`" PC="`echo ./xgpc -B./' ' |\
cat |\
 sed -e 's,-B\([^/][^: ]\),-B../../\1,g;s,^\([^/][^:]*\),../../\1,'`" SHELL="c:/djgpp/bin/bash.exe" CFLAGS="-O2" AR="ar" AR_FLAGS="rc" RANLIB="ranlib" RANLIB_TEST="[ -f ranlib ] || ( [ "i586-pc-msdosdjgpp" = "i586-pc-msdosdjgpp" ] && [ -f /usr/bin/ranlib -o -f /b
in/ranlib ] )" RTSFLAGS="" DESTDIR="../.." all

Well, that's not much better (yet) but the idea is to do things like this:

cat my.file |\
tr -d 0-9 |\
sort |\
uniq |\
sed -e "s/this/that/g" |\
cat > my.result

The nice thing about this method is that one can easily see the steps, and it
is easy to rearrange and modify.  (Of course one must not have
any spaces after the backslash!)

Regards,

Tom

  Dr. Thomas D. Schneider
  National Cancer Institute
  Laboratory of Experimental and Computational Biology
  Frederick, Maryland  21702-1201
  toms@ncifcrf.gov
  permanent email: toms@alum.mit.edu
  http://www.lecb.ncifcrf.gov/~toms/

Previous mail   Next mail   Formatted
Overview  10 days   Subject   Date   Thread   Author  


In reply to

Author Subject Date
Maurice Lombardi gpc-20000707 djgpp native compilation 13 Jul 2000, 17:14:18

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).