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

16 lines
477 B
Bash
Raw Normal View History

#!/bin/bash
# the script takes binutils* and creates the cross-* packages
for arch in hppa hppa64 mips arm i386 x86_64 s390 s390x sh4 ppc ppc64 ia64 sparc avr alpha spu; do
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/" \
-e '/ devel$/,/^$/d' \
< binutils.spec > cross-$arch-binutils.spec
echo " done."
done