# This is a semi-automatic script for building the binary packages. # It is intended to be progressively copied/pasted to a bash shell. set -x PACKAGENAME=zip VERSION=-3.0 VERSION2=$(echo $VERSION |tr -d '.-') VERSIONPATCH= VERSIONBIN=-bin-mintelf VERSIONBUILD=-$(date +%Y%m%d) ARCHIVES_DIR=$HOME/archives/$PACKAGENAME BUILD_DIR=$HOME/compil INSTALL_DIR=/usr CPUFLAGS= cd $BUILD_DIR tar xvf $ARCHIVES_DIR/$PACKAGENAME$VERSION2.tar.* cd $PACKAGENAME$VERSION2 # Default to binary fopen() sed -i 's:FOPR "r":FOPR "rb":g' tailor.h sed -i 's:FOPM "r+":FOPM "r+b":g' tailor.h sed -i 's:FOPW "w":FOPW "wb":g' tailor.h sed -i "s:CFLAGS_OPT='-O3':CFLAGS_OPT='-O3 -fomit-frame-pointer':g" unix/configure sed -i "s:wchar_t *:wchar_tBAD *:g" unix/configure sed -i "s:LFLAGS2='':LFLAGS2='-s':g" unix/configure make -f unix/Makefile generic CC=m68k-atari-mintelf-gcc make -f unix/Makefile install prefix=$PWD/binary-package$INSTALL_DIR MANDIR='$(prefix)/share/man/man$(MANEXT)' INSTALL_PROGRAM=install INSTALL_D="install -d" cd binary-package gzip -9 ${INSTALL_DIR#/}/share/man/*/* tar --owner=0 --group=0 -Jcvf $PACKAGENAME$VERSION$VERSIONPATCH$VERSIONBIN$VERSIONBUILD.tar.xz ${INSTALL_DIR#/} #mv $PACKAGENAME$VERSION$VERSIONPATCH$VERSIONBIN$VERSIONBUILD.tar.xz $ARCHIVES_DIR/