Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 39551
1
#!/usr/bin/env bash
2
3
# This works to build QEPCAD, but it doesn't actually work as far as I can tell. Leaving it here in case want to pick this up later.
4
# Not work = hangs when attempted from Sage.
5
# = example on their webpage doesn't work.
6
7
set -e
8
9
cd /usr/local/sage
10
mkdir -p qepcad
11
cd qepcad
12
ls
13
wget http://www.usna.edu/CS/~qepcad/INSTALL/saclib2.2.6.tar.gz
14
wget http://www.usna.edu/CS/~qepcad/INSTALL/qepcad-B.1.69.tar.gz
15
tar xf saclib2.2.6.tar.gz
16
tar xf qepcad-B.1.69.tar.gz
17
rm *.tar.gz
18
cd saclib2.2.6/
19
export saclib=`pwd`
20
cd bin
21
./sconf
22
./mkproto
23
./mkmake
24
./mklib all
25
cd ../..
26
cd qesource
27
export qe=`pwd`
28
make
29
echo "SINGULAR /usr/local/bin/" >> $qe/default.qepcadrc
30
cd $qe/cad2d
31
make
32
cd $qe/..
33
echo 'qe=/usr/local/sage/qepcad/qesource /usr/local/sage/qepcad/qesource/bin/qepcad "$@"' > qepcad
34
chmod a+x qepcad
35
chmod a+r -R *
36
cp qepcad /usr/local/sage/current/local/bin/qepcad
37
cp qesource/bin/qepcad.help /usr/local/sage/current/local/bin/
38