[tlbuild] asymptote build

John Bowman bowman at math.ualberta.ca
Tue Jun 23 17:15:39 CEST 2009


Hi Ken,
   I have no problem if any of those emails I sent to you are made public 
(the cygwin build instructions aren't officially documented yet since I
don't have time to walk everyone through the confusion, particularly
with openGL linking).

-- John

P.S. This forum thread is relevant:

http://sourceforge.net/forum/forum.php?thread_id=2979676&forum_id=409349

and here is the current version of my build script:

#!/bin/sh -x
GC=gc-7.1
VERSION=$1
if [ -z $VERSION ]; then
VERSION=`grep AC_INIT configure.ac | cut -s -d[ -f3 | cut -s -d] -f1`
if [ -z $VERSION ]; then
echo Usage: $0 VERSION
exit
fi
else
echo Building asymptote-$VERSION
cd ~/
rm -rf asymptote-$VERSION
mkdir -p CTAN
tar -zxf asymptote-$VERSION.src.tgz -C CTAN
tar -zxf asymptote-$VERSION.src.tgz
mkdir -p CTAN/asymptote-$VERSION/binaries/i386-win32/texlive
cd asymptote-$VERSION
fi
BUILD=build-$VERSION
ln -sf ../$GC.tar.gz .
ln -sf ../$GC .
make -n -j1 msdos >& /dev/null || ./configure --enable-gc=$GC --with-latex=/usr/local/share
mkdir -p $BUILD
cp -a /u/bowman/dll/cygwin/*.dll /u/bowman/dll/*.dll $BUILD
cp -a $BUILD/*.dll ~/CTAN/asymptote-$VERSION/binaries/i386-win32/
cp -a /u/bowman/dll/*.dll .
make -j2 msdos "CFLAGS=-g -O3 -DNO_CHECK_ALIGN" DESTDIR="$BUILD/" asy
test -f asy.list || make -j1 msdos "CFLAGS=-g -O3 -DNO_CHECK_ALIGN" DESTDIR="$BUILD/" asy-keywords.el
make -j1 msdos "CFLAGS=-g -O3 -DNO_CHECK_ALIGN" DESTDIR="$BUILD/" install-asy
#make -j2 check || exit
cp asy.ico $BUILD
pushd $BUILD
mv usr/local/bin/* .
mv usr/local/share/asymptote/*.* .
mv usr/local/share/doc/asymptote/examples .
mv usr/local/share/asymptote/GUI/*.py .
rm -rf usr
cp ~/asymptote.pdf ~/CAD.pdf .
rm -rf bin share doc
popd
echo \!define PRODUCT_VERSION \"$VERSION\" > AsymptoteInstallInfo.nsi
# generate uninstallation commands
ls -p1 $BUILD \
    | awk '{ if(index($0,"/")==length($0)) print "RMDir /r $INSTDIR\\" substr($0,0,length($0)-1); else print "Delete $INSTDIR\\" $0 }' \
	> AsymptoteUninstallList.nsi

/cygdrive/c/Program\ Files/NSIS/makensis.exe asymptote.nsi
mv asymptote-$VERSION-setup.exe ~/

cd ~/
rm -rf asymptote-${VERSION}TL || exit
cp -a asymptote-$VERSION asymptote-${VERSION}TL
sed asymptote-$VERSION/config.h -e 's/ASYMPTOTE_SYSDIR ".*"/ASYMPTOTE_SYSDIR ""/g' > asymptote-${VERSION}TL/config.h
touch -r asymptote-$VERSION/config.h asymptote-${VERSION}TL/config.h
cd asymptote-${VERSION}TL
rm settings.o
make -j1 msdos "CFLAGS=-g -O3 -DNO_CHECK_ALIGN" DESTDIR="$BUILD/" install-asy
mv $BUILD/usr/local/bin/asy.exe $BUILD
cp $BUILD/asy.exe ~/CTAN/asymptote-$VERSION/binaries/i386-win32/texlive
cp -a ~/doc $BUILD/asy-keywords.el ~/CTAN/asymptote-$VERSION
cd ~/CTAN
cp -a README-dll asymptote-$VERSION/binaries/i386-win32/README
cp -a README-binaries asymptote-$VERSION/binaries/i386-win32/texlive/README
cd ..
tar cfz asymptote-$VERSION-CTAN.tgz CTAN/asymptote-$VERSION

~/asymptote-$VERSION-setup.exe


More information about the tlbuild mailing list