www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/26/12:44:02

Message-Id: <199905261643.QAA107618@out2.ibm.net>
From: "Mark E." <snowball3 AT bigfoot DOT com>
To: RJ vd Boon <rjvdboon AT cs DOT vu DOT nl>, djgpp-workers AT delorie DOT com
Date: Wed, 26 May 1999 12:44:47 -0400
MIME-Version: 1.0
Subject: Re: SFN patches
In-reply-to: <m10mP8O-0006NjC@galjas.cs.vu.nl>
X-mailer: Pegasus Mail for Win32 (v3.11)
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> > 2) Change references of '.patchlevel' and '.distrubution' to '_patchlevel' 
> > and '_distribution' in a set of files (with a sed script?).
>

I added the sections below to handle .patchlevel, .distribution, and 
.build:

echo Change references of .patchlevel to _patchlevel and .distribution to _distribution...
for f in \
  ./configure.in \
  ./support/mkconffiles \
  ./support/mkclone
do
  sed -e 's/.patchlevel/_patchlevel/g' \
      -e 's/.distribution/_distribution/g' \
      -e 's/.build/_build/g' $f > ${SCRTMPFIL} \
    && update ${SCRTMPFIL} $f \
    && rm ${SCRTMPFIL}
done

echo Change references of .build to _build...
for f in \
  ./configure.in \
  ./Makefile.in \
  ./support/mkversion.sh
do
    sed -e 's/.build/_build/g' \
    sed -e 's/.made/_made/g' $f > ${SCRTMPFIL} \
    && update ${SCRTMPFIL} $f \
    && rm ${SCRTMPFIL}
done


> echo Last but not least, the list of files that still have a reference to y.tab:
> grep -l y\.tab `find . -type f -not -name "*~"`
> 
> 
> 


--- 
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019