-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
84 lines (67 loc) · 1.89 KB
/
build.sh
File metadata and controls
84 lines (67 loc) · 1.89 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#! /bin/bash
set -e
ROOT=$PWD
BUILD=$ROOT/build
mkdir -p $BUILD
cd $BUILD
GNUPLOT_VERSION="5.4.0"
if [[ ! -e gnuplot-${GNUPLOT_VERSION}.tar.gz ]]
then
wget https://sourceforge.net/projects/gnuplot/files/gnuplot/${GNUPLOT_VERSION}/gnuplot-${GNUPLOT_VERSION}.tar.gz/download
mv download gnuplot-${GNUPLOT_VERSION}.tar.gz
fi
if [[ ! -d gnuplot-${GNUPLOT_VERSION} ]]
then
tar xzf gnuplot-${GNUPLOT_VERSION}.tar.gz
fi
cd gnuplot-${GNUPLOT_VERSION}
if [[ ! -e src/gnuplot ]]
then
emconfigure ./configure \
--disable-largefile \
--disable-plugins \
--disable-history-file \
--disable-x11-mbfonts \
--disable-x11-external \
--disable-raise-console \
--disable-wxwidgets \
--without-libcerf \
--without-latex \
--without-kpsexpand \
--without-x \
--without-x-dcop \
--without-aquaterm \
--without-readline \
--without-lua \
--with-cwdrc \
--without-row-help \
--without-wx-multithreaded \
--without-bitmap-terminals \
--without-tektronix \
--without-gpic \
--without-tgif \
--without-mif \
--without-regis \
--without-cairo \
--without-qt
emmake make gnuplot
fi
cd ${ROOT}
if [[ ! -d gnuplot-deploy ]]
then
mkdir gnuplot-deploy
fi
if [[ ! -d linear-regression-deploy ]]
then
mkdir linear-regression-deploy
fi
cp ${BUILD}/gnuplot-${GNUPLOT_VERSION}/src/gnuplot gnuplot-deploy/gnuplot.js
cp ${BUILD}/gnuplot-${GNUPLOT_VERSION}/src/gnuplot.wasm gnuplot-deploy/
cp -r ${BUILD}/gnuplot-${GNUPLOT_VERSION}/term/js/ gnuplot-deploy/files
cp www/gnuplot/index.html gnuplot-deploy/
cp www/fhsu-logo.png gnuplot-deploy/
cp ${BUILD}/gnuplot-${GNUPLOT_VERSION}/src/gnuplot linear-regression-deploy/gnuplot.js
cp ${BUILD}/gnuplot-${GNUPLOT_VERSION}/src/gnuplot.wasm linear-regression-deploy/
cp -r ${BUILD}/gnuplot-${GNUPLOT_VERSION}/term/js/ linear-regression-deploy/files
cp www/linear-regression/index.html linear-regression-deploy/
cp www/fhsu-logo.png linear-regression-deploy/