Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/build/pkgs/gap/patches/gap_shi.patch
8818 views
1
Add Sage-specific options to the gap.sh source file
2
3
diff -ur old/gap.shi src/gap.shi
4
--- old/gap.shi 2012-02-20 20:04:01.000000000 +0000
5
+++ src/gap.shi 2012-09-02 10:44:27.488429081 +0100
6
@@ -8,7 +8,10 @@
7
## Then copy this file to a directory in your search path, e.g., '~/bin'.
8
## If you later move GAP to another location you must only change this file.
9
##
10
-
11
+if [ $SAGE_LOCAL"" = "" ]; then
12
+ echo "Set the environment variable SAGE_LOCAL."
13
+ exit 1
14
+fi
15
16
#############################################################################
17
##
18
@@ -20,7 +23,7 @@
19
## You won't have to change this unless you move the installation.
20
##
21
if [ "x$GAP_DIR" = "x" ]; then
22
-GAP_DIR="@gapdir@"
23
+ GAP_DIR="$SAGE_LOCAL/gap/latest"
24
fi
25
26
27
@@ -35,9 +38,9 @@
28
## in parallel with other programs you may want to set this value close
29
## to the amount of memory your computer has.
30
##
31
-#if [ "x$GAP_MEM" = "x" ]; then
32
-#GAP_MEM="-m 256m"
33
-#fi
34
+if [ "x$GAP_MEM" = "x" ]; then
35
+ GAP_MEM="-m 24m"
36
+fi
37
38
39
#############################################################################
40
41