--- Travis Willard <[EMAIL PROTECTED]> wrote:

> Just a hint, since you were looking to add i586 -
> find and sed are
> your friends. :D
> 
> find -name PKGBUILD -exec sed -i '/^arch=/ { /i586/
> !{
> s/^arch=(/arch=(i586 / } }' {} \;
> 
> That will find every PKGBUILD and add i586 to the
> packages that don't
> already have it.  Yay!
> 

No good, many PKGBUILDs have stuff like

if [ "$CARCH" = "i686" ]; then
  << do something >>
fi

in the build() section, where the something done is
usually something you want done in the i586 case too.

Better to straight out replace i686 by i586 in the
whole PKGBUILD.

find /var/abs -name PKGBUILD -exec sed -i -e
's|i686|i586|g' '{}' \;

Might also want to do

grep -R i686 /var/abs/*

just to be sure there are no i686's hiding in .install
files.

cheers.



      Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New 
Mail today or register for free at http://mail.yahoo.ca 

Reply via email to