Thursday, 14 March 2013

Autobuild Atari / missing patch files.

# This is a semi-automatic script for building the binary packages.
# It is designed to be run on Cygwin,
# but it should run fine on Linux and other GNU environments.

set -x

ARCHIVES_DIR="/cygdrive/i/Compilations GNU/Sources GCC/binutils/binutils-2.22"
BUILD_DIR=$HOME/compil
INSTALL_DIR=/opt/cross-mint
PACKAGENAME=binutils
VERSION=-2.22
VERSIONPATCH=-mint-20120205
VERSIONBIN=-bin-cygwin
VERSIONBUILD=-`date +%Y%m%d`

cd $BUILD_DIR
tar jxvf "$ARCHIVES_DIR/$PACKAGENAME$VERSION.tar.bz2"
mv $PACKAGENAME$VERSION $PACKAGENAME$VERSION$VERSIONPATCH
#tar jxvf "$ARCHIVES_DIR/$PACKAGENAME$VERSION.tar.bz2"
cd $PACKAGENAME$VERSION$VERSIONPATCH
bzcat "$ARCHIVES_DIR/$PACKAGENAME$VERSION$VERSIONPATCH.patch.bz2" |patch -p1
cd ..

mkdir $PACKAGENAME$VERSION$VERSIONPATCH$VERSIONBIN
cd $PACKAGENAME$VERSION$VERSIONPATCH$VERSIONBIN
../$PACKAGENAME$VERSION$VERSIONPATCH/configure --target=m68k-atari-mint --prefix=$INSTALL_DIR --disable-nls
make

make install DESTDIR=$PWD/binary-package
cd binary-package
rm ${INSTALL_DIR#/}/bin/m68k-atari-mint-readelf*
rm ${INSTALL_DIR#/}/bin/m68k-atari-mint-elfedit*
rm -r ${INSTALL_DIR#/}/lib
rm -r ${INSTALL_DIR#/}/share/info
rm ${INSTALL_DIR#/}/share/man/man1/m68k-atari-mint-dlltool.1
rm ${INSTALL_DIR#/}/share/man/man1/m68k-atari-mint-nlmconv.1
rm ${INSTALL_DIR#/}/share/man/man1/m68k-atari-mint-readelf.1
rm ${INSTALL_DIR#/}/share/man/man1/m68k-atari-mint-elfedit.1
rm ${INSTALL_DIR#/}/share/man/man1/m68k-atari-mint-windmc.1
rm ${INSTALL_DIR#/}/share/man/man1/m68k-atari-mint-windres.1
strip ${INSTALL_DIR#/}/bin/*
gzip -9 ${INSTALL_DIR#/}/share/man/*/*.1

tar --owner=0 --group=0 -jcvf $PACKAGENAME$VERSION$VERSIONPATCH$VERSIONBIN$VERSIONBUILD.tar.bz2 ${INSTALL_DIR#/}
Hello,

recently the autobuild of the Atari toolchain / SDK has broken, because
of missing patches.

Vincent R. send me the old versions of the patches, as he don't wants
to upload these old versions
on his server again (he wants users to use the latest versions).

If they are required, could someone please integrate them into the
autobuilder?
But maybe it would be better to update the toolchain to the latest
version?
So there would be no need for this workaround.

Greets,
Ole

No comments:

Post a Comment