On Sat, 27 Nov 1999, Florent Villard wrote:
>
> Hie, I don't know if this is a common problem, anyway "install -[og]
> root" are pretty boring so I write a small script to get rid of that.
> It create a patch to eliminate the occurences, must be run after rpm -bp
[..]
> Comments ?
You rock! Just what the doctor ordered, ok almost what the doctor ordered.
It doesn't seem good use of cpu to scan all files, only the Makefiles.
Anybody care to have a go at makeing that a perl oneliner? Static patching
for this doesn't seem efficient use of _us_
Actualy I think i have a perl oneliner for these, if a guru would like to
perfect it.
# I did this one for install
procinfo.spec:perl -p -i -e 's/-o 0 -g 0//g' Makefile
# and this one for chown
usernet.spec:perl -p -i -e 's/root\.root/\$(USER)\.\$(USER)/g' Makefile
--
MandrakeSoft http://www.mandrakesoft.com/
--Axalon