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

#!/bin/sh

name=$1

if [ -n "$name" ]; then

        touch $name-noroot.patch

        for i in `find $name/ -name "*" | xargs grep -Esi
"install.*-[og] +root" | sed "s/\(^[^\:]*\).*/\1/" | sort -u`
        do
        cat $i | sed "s/-[og] \+root//ig" > $i.tmp
        mv $i $i.orig
        mv -f $i.tmp $i
        echo $i
        diff -u $i.orig $i >> $name-noroot.patch
        mv -f $i.orig $i
        done

        bzip2 -f $name-noroot.patch
        exit

fi
echo "usage : $0 package_name"

Comments ?

-- 
Warly

Reply via email to