2007-10-09 04:28:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# the script takes binutils* and creates the cross-* packages
|
2011-06-07 13:04:38 +02:00
|
|
|
# sh4 is stuck in the testsuite, avr is packaged separately
|
|
|
|
for arch in hppa hppa64 mips arm i386 x86_64 s390 s390x ppc ppc64 ia64 sparc alpha spu; do
|
2007-10-09 04:28:58 +02:00
|
|
|
|
|
|
|
echo -n "Building package for $arch --> cross-$arch-binutils ..."
|
|
|
|
|
|
|
|
ln -f binutils.changes cross-$arch-binutils.changes
|
|
|
|
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils/" \
|
2009-01-22 16:48:12 +01:00
|
|
|
-e '/%ifarch %gold_archs/,/%endif/d' \
|
|
|
|
-e '/ \(devel\|gold\)$/,/^$/d' \
|
2007-10-09 04:28:58 +02:00
|
|
|
< binutils.spec > cross-$arch-binutils.spec
|
|
|
|
|
|
|
|
echo " done."
|
|
|
|
done
|