2007-10-09 04:28:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# the script takes binutils* and creates the cross-* packages
|
|
|
|
|
2010-07-30 12:32:27 +02:00
|
|
|
for arch in hppa hppa64 mips arm i386 x86_64 s390 s390x sh4 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
|