rpm-build/scripts/cross-build

18 lines
621 B
Plaintext
Raw Normal View History

2002-03-25 23:16:26 +03:00
#!/bin/sh
#
# Example script to cross-build for the platform "sh-linux-gnu".
#
#
SHMAKE='make CC=sh-linux-gnu-gcc CONFIG_SITE=/usr/lib/rpm/config.site RANLIB=sh-linux-gnu-ranlib LD=sh-linux-gnu-ld AS=sh-linux-gnu-as GAS=sh-linux-gnu-as STRIP=sh-linux-gnu-strip CC_FOR_BUILD=gcc OBJDUMP=sh-linux-gnu-objdump AR="sh-linux-gnu-ar" CXX=sh-linux-g++'
for pkg in $@ ; do
echo $pkg
if [ ! -r $pkg.log ]; then
$SHMAKE RPMFILE=$pkg 2>&1 | tee $pkg.log
2002-03-26 00:50:17 +03:00
if [ -r /usr/src/RPM/RPMS/sh/`echo $pkg | sed -e "s:/tmp/srpms/::" -e "s/.src.rpm/.sh.rpm/"` ]; then
2002-03-25 23:16:26 +03:00
mv $pkg $pkg.log /tmp/srpms/done
fi
fi
done