SHA256
1
0
forked from pool/binutils
binutils/pre_checkin.sh

20 lines
633 B
Bash

#!/bin/bash
# the script takes binutils* and creates the cross-* packages
# sh4 is stuck in the testsuite
for arch in hppa hppa64 mips arm i386 x86_64 s390 s390x ppc ppc64 ia64 sparc alpha spu avr; do
echo -n "Building package for $arch --> cross-$arch-binutils ..."
ln -f binutils.changes cross-$arch-binutils.changes
( echo "%define cross 1"
echo "%define TARGET $arch" \
| sed -e "s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/"
) > cross-$arch-binutils.spec
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils/" \
< binutils.spec >> cross-$arch-binutils.spec
echo " done."
done