Date: Thu, 24 Jul 1997 03:32:17 +0930 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: micke@dynas.se (Mikael Hybsch) Cc: sos@sos.freebsd.dk, freebsd-current@FreeBSD.ORG Subject: Re: who broke libedit ?? Message-ID: <199707231802.DAA10803@genesis.atrad.adelaide.edu.au> In-Reply-To: <m0wr5HM-000JehC@spirit> from Mikael Hybsch at "Jul 23, 97 07:32:48 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Mikael Hybsch stands accused of saying: > I had the same problem some says ago. > > The real problem is some odd code in the shell-script makeline. > When used with -h, it tries to extract the basename of the file without > extention by first splitting the full path filename on '.' and then calling > `basename $1` instead of the reverse. Yay! Shimon has the same problem too. How does the follwing alternate logic look : FILES="$@" case $FLAG in -h) fn=`basename $FILES` OIFS="$IFS" IFS=".$IFS" set - $fn IFS="$OIFS" hdr="_h_$1_$2" cat $FILES | $AWK ' BEGIN { printf("/* Automatically generated file, do not edit */\n"); printf("#ifndef %s\n#define %s\n", "'$hdr'", "'$hdr'"); } Any complaints? I give you time to make a coffee and I commit. -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707231802.DAA10803>