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

Mail #4032

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Tom Schneider
Subject: gpc-20000707 djgpp native compilation
Date: 13 Jul 2000, 11:29:14

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   Unformatted/full headers
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).