summaryrefslogtreecommitdiff
path: root/graphics/asymptote/build-scripts/build-asymptote-CTAN
blob: 56cff8cc21ad28dce8e6d6c3416a74e606684101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/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
find . -name ".[^.]*" -exec rm -rf {} \;
rm -rf libatomic_ops/m4
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