Subject: Re: REPLACE_PERL?
To: None <tech-pkg@netbsd.org>
From: Tomasz Luchowski <zuntum@netbsd.org>
List: tech-pkg
Date: 04/02/2001 17:35:29
On Mon, Apr 02, 2001 at 05:24:50PM +0200, Tomasz Luchowski wrote:
> .for f in ${REPLACE_NCURSES}
>         ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; if [ -f ${f} ]; then   \
>                 ${SED}  -e "s/ncurses/curses/g" ${f} > ${f}.new;        \
>                 if [ -x ${f} ]; then                                    \
>                         ${CHMOD} a+x ${f}.new;                          \
>                 fi;                                                     \
>                 ${MV} ${f}.new ${f};                                    \
>         fi
> .endfor
> .endif
> 
> After reading that code REPLACE_PERL comes to mind... we often have to
> invoke sed to change perl's path and mv output to the correct place.
> Maybe we could introdute this?
of course it would do ${SED} "s,/usr/bin/perl,${LOCALBASE}/bin/perl,g"
in specified files.

-- 
/* [zuntum] zuntum@netbsd.org , [WWW] http://zuntum.net */