summaryrefslogtreecommitdiff
path: root/graphics/asymptote/build-scripts/build-asymptote-CTAN
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/build-scripts/build-asymptote-CTAN')
-rwxr-xr-xgraphics/asymptote/build-scripts/build-asymptote-CTAN32
1 files changed, 32 insertions, 0 deletions
diff --git a/graphics/asymptote/build-scripts/build-asymptote-CTAN b/graphics/asymptote/build-scripts/build-asymptote-CTAN
new file mode 100755
index 0000000000..614f892686
--- /dev/null
+++ b/graphics/asymptote/build-scripts/build-asymptote-CTAN
@@ -0,0 +1,32 @@
+#!/bin/sh -x
+GC=7.6.2
+
+MACHINE=`uname -m`
+BINDIR=x86_64-windows
+HOME=/home/$USER
+SHARED=$HOME/shared/asy
+ASYMPTOTE=$HOME/asymptote
+
+MAKEFLAGS=-j8
+export MAKEFLAGS
+
+cd $ASYMPTOTE
+VERSION=`grep AC_INIT configure.ac | cut -s -d[ -f3 | cut -s -d] -f1 | sed -e 's/git//'`
+
+cd /tmp
+echo Building asymptote-$VERSION-CTAN
+SRC=/usr/local/src/asymptote-$VERSION.src.tgz
+rm -rf asymptote-$VERSION
+tar -zxf $SRC
+cd asymptote-$VERSION
+mkdir -p binaries/$BINDIR/texlive
+cd binaries/$BINDIR
+cp $SHARED/CTAN/asy.exe texlive
+cp $SHARED/CTAN/dll/*.dll .
+cp -a ../../README .
+cp -a ../../build-scripts/README-binaries texlive/README
+cd ../../..
+rm -rf asymptote
+mv asymptote-$VERSION asymptote
+tar cfz asymptote-$VERSION-CTAN.tgz asymptote
+cp asymptote-$VERSION-CTAN.tgz $SHARED