This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
/
install
executable file
·596 lines (529 loc) · 20.3 KB
/
install
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
#!/usr/bin/env bash
########################################################################
# Set various environment variables
########################################################################
# Assume current directory is SAGE_ROOT/build
SAGE_ROOT=`cd .. && pwd -P`
SAGE_SRC="$SAGE_ROOT/src"
SAGE_LOCAL="$SAGE_ROOT/local"
SAGE_SHARE="$SAGE_LOCAL/share"
SAGE_EXTCODE="$SAGE_SHARE/sage/ext"
SAGE_LOGS="$SAGE_ROOT/logs/pkgs"
SAGE_SPKG_INST="$SAGE_LOCAL/var/lib/sage/installed"
SAGE_VERSION=`cat $SAGE_ROOT/VERSION.txt | sed 's+.*\ \(.*\),.*+\1+'`
PATH="$SAGE_ROOT/src/bin:$SAGE_LOCAL/bin:$PATH"
PYTHONPATH="$SAGE_LOCAL"
export SAGE_ROOT SAGE_SRC SAGE_LOCAL SAGE_EXTCODE SAGE_LOGS SAGE_SPKG_INST SAGE_VERSION PATH PYTHONPATH
# Storing the start time of the build process. The time is stored in
# seconds since 1970-01-01 in a hidden file called
# "SAGE_ROOT/.BUILDSTART". See ticket #6744.
echo `date -u "+%s"` > "$SAGE_ROOT/.BUILDSTART"
########################################################################
# Fixes for upgraded Sage versions
########################################################################
# The script 'pipestatus' used to be autogenerated by this file. It
# should be present in any version of Sage starting with 4.5. In
# #11073, the autogeneration was removed, so we just check to see if
# the file is missing.
if [ ! -f pipestatus ]; then
cat >&2 <<EOF
Error: the script 'pipestatus' is missing. If you are trying to
upgrade, your original version of Sage is too old, so upgrading to a
5.x version of Sage won't work. Your options are:
- Upgrading first to sage-4.8 and then upgrading again to sage-5.x.
- Downloading a new binary version of Sage.
- Building a new source version from scratch.
EOF
exit 2
fi
if [ "$SAGE_UPGRADING" = yes ]; then
# We're doing an upgrade. Let build/Makefile call sage-spkg with
# "-f" to force rebuilding dependent packages, too:
export SAGE_SPKG_OPTS="-f"
# Avoid RM being set to "rm" (older versions of Sage did this):
# http://trac.sagemath.org/sage_trac/ticket/3537
if [ "$RM" = rm ]; then
export RM="rm -f"
fi
# If we have an old version of sage-location,
# then manually fix the .la (libtool) files.
if grep 'lib64' "$SAGE_LOCAL/bin/sage-location" &>/dev/null; then
# sage-location does check lib64, so everything is fine.
true
else
echo "Found an old version of sage-location, manually fixing some Libtool files."
for d in "$SAGE_LOCAL/lib32" "$SAGE_LOCAL/lib64"; do
for la_file in "$d"/*.la; do
[ -w "$la_file" ] || continue
sed -i "s ^libdir=.* libdir='$d' " "$la_file"
done
done
fi
# The old sage-make_relative script is troublesome (#13407 and #14027).
# We simply delete it, its role is taken over by sage-location.
rm -f "$SAGE_LOCAL/bin/sage-make_relative"
fi
###############################################################################
# Create basic directories needed for Sage
###############################################################################
mkdir -p "$SAGE_ROOT/tmp"
mkdir -p "$SAGE_LOGS"
mkdir -p "$SAGE_LOCAL/bin"
mkdir -p "$SAGE_LOCAL/etc"
mkdir -p "$SAGE_LOCAL/lib"
mkdir -p "$SAGE_SPKG_INST"
mkdir -p "$SAGE_SHARE"
# If we are upgrading from an old version of Sage where $SAGE_SHARE
# was stored at $SAGE_ROOT/data, move it to the right location.
# Check that $SAGE_ROOT/data is an existing directory and not a symlink.
if [ -d "$SAGE_ROOT/data" ] && [ ! -h "$SAGE_ROOT/data" ]; then
mkdir -p "$SAGE_ROOT/devel"
mv "$SAGE_ROOT"/data/extcode "$SAGE_ROOT/devel/ext-main"
mv "$SAGE_ROOT"/data/* "$SAGE_SHARE"
rm -rf "$SAGE_ROOT/data"
fi
###############################################################################
# Determine whether to install GCC (gcc, g++, gfortran).
###############################################################################
# Give a deprecation message whenever SAGE_FORTRAN or SAGE_FORTRAN_LIB
# is set to something. See Trac #13349.
if [ -n "$SAGE_FORTRAN" ] || [ -n "$SAGE_FORTRAN_LIB" ]; then
cat >&2 <<EOF
WARNING: the environment variables SAGE_FORTRAN and SAGE_FORTRAN_LIB
are deprecated since sage-5.3.
The GNU Compiler Collection (GCC) is included in Sage and will be
installed if you do not have a Fortran compiler. If you do have a
Fortran compiler installed and you want to specify its path, you can
use the standard environment variable FC (instead of SAGE_FORTRAN) to
point to the Fortran compiler.
As replacement to SAGE_FORTRAN_LIB, you can either add the directory
containing the Fortran library to LIBRARY_PATH and/or LD_LIBRARY_PATH,
or copy/symlink the Fortran library into \$SAGE_ROOT/local/lib. In most
cases, none of this is needed as the compiler/linker should find the
Fortran library by itself.
Support for SAGE_FORTRAN and SAGE_FORTRAN_LIB might be removed from
future versions of Sage. Moreover, these variables are not tested
anymore and might not work as you expect.
EOF
sleep 5
fi
# Determine various compilers. These variables should not be exported,
# they are only used in this build/install script to determine whether to
# install GCC. The "real" $CC, $CXX,... variables for building Sage are
# set in sage-env.
if [ -z "$CC" ]; then
CC=gcc
fi
if [ -z "$CXX" ]; then
if command -v g++ >/dev/null 2>/dev/null; then
CXX=g++
fi
fi
if [ -z "$FC" ]; then
if [ -n "$SAGE_FORTRAN" ]; then
FC="$SAGE_FORTRAN"
elif command -v gfortran >/dev/null 2>/dev/null; then
FC=gfortran
elif command -v g95 >/dev/null 2>/dev/null; then
FC=g95
elif command -v g77 >/dev/null 2>/dev/null; then
FC=g77
fi
fi
if [ -f "$SAGE_LOCAL/bin/gcc" ]; then
# GCC is already installed. Normally we don't need to re-install
# GCC, unless this is an upgrade. To disable unneeded rebuilding
# of GCC, we touch the installed file for GCC, such that it will
# really only be built if one of its dependencies has been upgraded.
if [ "$SAGE_UPGRADING" = yes ]; then
echo >&2 "We are upgrading Sage and GCC was installed before, it will get"
echo >&2 "re-installed if needed."
need_to_install_gcc=yes
for f in "$SAGE_SPKG_INST"/gcc-*; do
if [ -f "$f" ]; then
touch "$f"
fi
done
else
need_to_install_gcc=no
fi
elif [ -n "$SAGE_INSTALL_GCC" ]; then
# Check the value of the environment variable SAGE_INSTALL_GCC
case "$SAGE_INSTALL_GCC" in
yes)
echo >&2 "Installing GCC because SAGE_INSTALL_GCC is set to 'yes'."
need_to_install_gcc=yes;;
no)
need_to_install_gcc=no;;
*)
echo >&2 "Error: SAGE_INSTALL_GCC should be set to 'yes' or 'no'."
echo >&2 "You can also leave it unset to install GCC when needed."
exit 2;;
esac
else
# SAGE_INSTALL_GCC is not set, install GCC when needed.
need_to_install_gcc=no
# Check whether $CC is some version of GCC. If it's a different
# compiler, install GCC.
CCtype=`testcc.sh $CC`
if [ "$CCtype" != GCC ]; then
echo >&2 "Installing GCC because your '$CC' isn't GCC (GNU CC)."
need_to_install_gcc=yes
else
# $CC points to some version of GCC, find out which version.
GCCVERSION=`$CC -dumpversion`
case $GCCVERSION in
[0-3].*|4.[0-3]|4.[0-3].*)
# Install our own GCC if the system-provided one is older than gcc-4.4.
# * gcc-4.2.4 compiles a slow IML:
# https://groups.google.com/forum/?fromgroups#!topic/sage-devel/Ux3t0dW2FSI
# * gcc-4.3 might have trouble building ATLAS:
# https://groups.google.com/forum/?fromgroups#!topic/sage-devel/KCeFqQ_w2FE
echo >&2 "Installing GCC because you have $CC version $GCCVERSION, which is quite old."
need_to_install_gcc=yes;;
4.4*|4.5*)
# GCC 4.4.x and GCC 4.5.x fail to compile PARI/GP on ia64:
# * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46044
if [ x`uname -m` = xia64 ]; then
echo >&2 "Installing GCC because you have $CC version $GCCVERSION on ia64."
echo >&2 "gcc <= 4.5 fails to compile PARI/GP on ia64."
need_to_install_gcc=yes
fi;;
4.6.[01])
# Also install GCC if we have version 4.6.0 or 4.6.1, which is
# known to give trouble within Sage:
# * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48702
# * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48774
echo >&2 "Installing GCC because you have $CC version $GCCVERSION."
echo >&2 "gcc-4.6.0 and gcc-4.6.1 have known bugs affecting Sage."
need_to_install_gcc=yes;;
4.6*)
# GCC 4.6.x doesn't compile ECL on Cygwin:
# * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52061
if uname | grep CYGWIN >/dev/null; then
echo >&2 "Installing GCC because you have $CC version $GCCVERSION on Cygwin."
echo >&2 "gcc-4.6.x fails to compile ECL on Cygwin."
need_to_install_gcc=yes
fi;;
4.7.0)
# GCC 4.7.0 is very broken on ia64, see
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48496
# This is fixed in GCC 4.7.1.
if [ x`uname -m` = xia64 ]; then
echo >&2 "Installing GCC because you have $CC version $GCCVERSION on ia64."
echo >&2 "gcc-4.7.0 has a serious bug on ia64."
need_to_install_gcc=yes
fi;;
esac
fi
# Check C++ and Fortran compilers.
if [ -z "$CXX" ]; then
echo >&2 "Installing GCC because a C++ compiler is missing."
need_to_install_gcc=yes
fi
if [ -z "$FC" ]; then
echo >&2 "Installing GCC because a Fortran compiler is missing."
need_to_install_gcc=yes
fi
fi
###############################################################################
# Create the sage_fortran script.
###############################################################################
# Don't use FC and SAGE_FORTRAN_LIB if we are installing GCC or have
# installed gfortran, as that can cause compatibility problems.
# We want to use the Fortran compiler that we build as part of GCC.
if [ "$need_to_install_gcc" = yes ] || [ -x "$SAGE_LOCAL/bin/gfortran" ]; then
unset FC
unset SAGE_FORTRAN_LIB
fi
# Write sage_fortran script.
cat >"$SAGE_LOCAL/bin/sage_fortran" <<EOF
#!/bin/sh
cat >&2 <<ENDOFWARNING
WARNING: The sage_fortran script is deprecated since Sage 5.11 and
might not be supported in future versions of Sage. You should update
your package to use the standard environment variable \\\$FC instead.
ENDOFWARNING
if [ "x\$FC" = x ]; then
# Default value determined in build/install
myFC='${FC:-gfortran}'
else
myFC="\$FC"
fi
# unset FC to avoid an infinite loop in the case that FC=sage_fortran.
unset FC
if [ "\$SAGE64" = yes ]; then
exec \$myFC -m64 -fPIC "\$@"
else
exec \$myFC -fPIC "\$@"
fi
EOF
chmod +x "$SAGE_LOCAL/bin/sage_fortran"
# Make the fortran library symlink if requested
if [ -f "$SAGE_FORTRAN_LIB" ]; then
( cd "$SAGE_LOCAL/lib" && ln -sf "$SAGE_FORTRAN_LIB" . )
fi
###############################################################################
# Create $SAGE_ROOT/build/Makefile starting from build/deps
###############################################################################
exec 3>Makefile
cat >&3 <<EOF
#==============================================================================
# This file has been automatically generated by
# $SAGE_ROOT/build/install
# You should not edit it by hand
#==============================================================================
EOF
# If the user (or the Makefile) has set SAGE_PARALLEL_SPKG_BUILD=no,
# then turn off parallel building: disable just building multiple
# packages at the same time. Individual packages can still be built
# in parallel by specifying '-j' in $MAKE.
if [ "${SAGE_PARALLEL_SPKG_BUILD:-yes}" = no ]; then
echo ".NOTPARALLEL:" >&3
echo "" >&3
fi
# Usage: newest_version_base $pkg
# Print version number of latest (according to modification time)
# base package $pkg
newest_version_base() {
PKG=$1
# As a fallback, we also look at the latest installed package.
for FILE in `{ ls -1t base/$PKG-*-install; ls -1t installed/$PKG-*; } 2>/dev/null`
do
ANS=`echo "$FILE" | sed 's|.*/||; s|-install||'`
if [ -n "$ANS" ]; then
echo "$ANS"
return 0
fi
done
echo >&2 "Cannot determine latest version of $PKG."
echo "$PKG"
return 1
}
# Usage: newest_version $pkg
# Print version number of latest standard package $pkg
newest_version() {
PKG=$1
if [ -f "$SAGE_ROOT/build/pkgs/$PKG/package-version.txt" ]; then
echo -n $PKG-
cat "$SAGE_ROOT/build/pkgs/$PKG/package-version.txt"
else
echo >&2 "Cannot determine latest version of $PKG."
echo "$PKG"
return 1
fi
}
cat >&3 <<EOF
# Base packages
PREREQ=`newest_version_base prereq`
# Standard packages
ATLAS=`newest_version atlas`
BOEHM_GC=`newest_version boehm_gc`
BOOST_CROPPED=`newest_version boost_cropped`
BZIP2=`newest_version bzip2`
CDDLIB=`newest_version cddlib`
CEPHES=`newest_version cephes`
CLIQUER=`newest_version cliquer`
CONWAY=`newest_version conway_polynomials`
CVXOPT=`newest_version cvxopt`
CYTHON=`newest_version cython`
DOCUTILS=`newest_version docutils`
ECL=`newest_version ecl`
ECLIB=`newest_version eclib`
ECM=`newest_version ecm`
ELLIPTIC_CURVES=`newest_version elliptic_curves`
FFLASFFPACK=`newest_version fflas_ffpack`
FLINT=`newest_version flint`
FLINTQS=`newest_version flintqs`
FPLLL=`newest_version libfplll`
FREETYPE=`newest_version freetype`
GAP=`newest_version gap`
GCC=`newest_version gcc`
GD=`newest_version gd`
GDMODULE=`newest_version gdmodule`
GENUS2REDUCTION=`newest_version genus2reduction`
GFAN=`newest_version gfan`
GF2X=`newest_version gf2x`
GIT=`newest_version git`
GIVARO=`newest_version givaro`
GLPK=`newest_version glpk`
GRAPHS=`newest_version graphs`
GSL=`newest_version gsl`
ICONV=`newest_version iconv`
IML=`newest_version iml`
IPYTHON=`newest_version ipython`
JINJA2=`newest_version jinja2`
JMOL=`newest_version jmol`
LCALC=`newest_version lcalc`
LRCALC=`newest_version lrcalc`
LIBGAP=`newest_version libgap`
LIBPNG=`newest_version libpng`
LINBOX=`newest_version linbox`
M4RI=`newest_version libm4ri`
M4RIE=`newest_version libm4rie`
MATPLOTLIB=`newest_version matplotlib`
MAXIMA=`newest_version maxima`
MPC=`newest_version mpc`
MPFI=`newest_version mpfi`
MPFR=`newest_version mpfr`
MPIR=`newest_version mpir`
MPMATH=`newest_version mpmath`
NETWORKX=`newest_version networkx`
NTL=`newest_version ntl`
NUMPY=`newest_version numpy`
PALP=`newest_version palp`
PARI=`newest_version pari`
PATCH=`newest_version patch`
PEXPECT=`newest_version pexpect`
PIL=`newest_version pil`
POLYBORI=`newest_version polybori`
POLYTOPES_DB=`newest_version polytopes_db`
PPL=`newest_version ppl`
PYCRYPTO=`newest_version pycrypto`
PYGMENTS=`newest_version pygments`
PYNAC=`newest_version pynac`
PYTHON=`newest_version python`
R=`newest_version r`
RPY=`newest_version rpy2`
RATPOINTS=`newest_version ratpoints`
READLINE=`newest_version readline`
RUBIKS=`newest_version rubiks`
SAGENB=`newest_version sagenb`
SAGETEX=`newest_version sagetex`
SCIPY=`newest_version scipy`
SCONS=`newest_version scons`
SETUPTOOLS=`newest_version setuptools`
SINGULAR=`newest_version singular`
SPHINX=`newest_version sphinx`
SQLALCHEMY=`newest_version sqlalchemy`
SQLITE=`newest_version sqlite`
SYMMETRICA=`newest_version symmetrica`
SYMPOW=`newest_version sympow`
SYMPY=`newest_version sympy`
TACHYON=`newest_version tachyon`
NCURSES=`newest_version ncurses`
ZLIB=`newest_version zlib`
ZNPOLY=`newest_version zn_poly`
# Directory to keep track of which packages are installed
INST=`echo "$SAGE_SPKG_INST" | sed 's/ /\\\\ /g'`
EOF
# $(TOOLCHAIN) variable containing prerequisites for the build
echo >&3 -n 'TOOLCHAIN ='
if [ "$SAGE_INSTALL_CCACHE" = yes ]; then
echo >&3 -n ' $(INST)/ccache'
fi
if [ "$need_to_install_gcc" = yes ]; then
echo >&3 -n ' $(INST)/$(GCC)'
# Use this option for the prereq configure script, such that it
# will skip all compiler checks.
export PREREQ_OPTIONS="--disable-compiler-checks $PREREQ_OPTIONS"
fi
echo >&3
echo >&3 'SCRIPT_SOURCES = \'
for file in "$SAGE_SRC/bin/"*; do
echo >&3 " \$(SAGE_SRC)${file#$SAGE_SRC} \\"
done
echo >&3
echo >&3 'SCRIPT_TARGETS = \'
for file in "$SAGE_SRC/bin/"*; do
echo >&3 " \$(SAGE_LOCAL)${file#$SAGE_SRC} \\"
done
echo >&3
echo >&3 'EXTCODE_SOURCES = \'
for file in `find "$SAGE_SRC"/ext -type f`; do
echo >&3 " \$(SAGE_SRC)${file#$SAGE_SRC} \\"
done
echo >&3
echo >&3 'EXTCODE_TARGETS = \'
for file in `find "$SAGE_SRC"/ext -type f`; do
echo >&3 " \$(SAGE_EXTCODE)${file#$SAGE_SRC/ext} \\"
done
echo >&3
cat >&3 <<EOF
# don't just use \`install\` since we don't want to change permissions
\$(SAGE_LOCAL)/bin/%: \$(SAGE_SRC)/bin/%
cp \$< \$@
# don't just use \`install -D\` since we don't want to change permissions
# cp won't correctly setup the SAGE_EXTCODE directory structure (unlike install)
# so we need a mkdir here to cp can copy into an existing folder
\$(SAGE_EXTCODE)/%: \$(SAGE_SRC)/ext/%
@mkdir -p "\$(@D)"
cp \$< \$@
EOF
# Copy build/deps
cat >&3 <<EOF
#==============================================================================
# What follows now is a copy of
# $SAGE_ROOT/build/deps
#==============================================================================
EOF
cat "$SAGE_ROOT/build/deps" >&3
# Close the Makefile
exec 3>&-
###############################################################################
# Skip the rest if nothing to do (i.e., to [re]build).
###############################################################################
# Set MAKE to "make" if unset
if [ -z "$MAKE" ]; then
MAKE=make
fi
# * If "make" doesn't understand the -q option (although we require
# GNU make, which supports it), it should exit with a non-zero status
# which is not a problem.
if $MAKE -q "$@" >/dev/null 2>/dev/null; then
echo "Nothing to (re)build / all up-to-date."
exit 0
fi
# Dump environment for debugging purposes:
echo "*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***"
env | sort
echo "***********************************************"
###############################################################################
# NOW do the actual build:
###############################################################################
time $MAKE "$@"
if [ $? -ne 0 ]; then
cat >&2 <<EOF
***************************************************************
Error building Sage.
The following package(s) may have failed to build:
EOF
for f in "$SAGE_LOGS"/*.log; do
# Look for recent error message in log file.
# Note that "tail -n 20 ..." doesn't work on Solaris.
if tail -20 "$f" | grep "^Error" &>/dev/null; then
base_f=`basename $f .log`
cat >&2 <<EOF
package: $base_f
log file: $f
build directory: ${SAGE_BUILD_DIR:-$SAGE_LOCAL/var/tmp/sage/build}/$base_f
EOF
fi
done
cat >&2 <<EOF
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
EOF
exit 1
fi
# Build succeeded.
echo "Sage build/upgrade complete!"
if [ "$1" = "all" ]; then
echo
echo "To install small scripts to directly run Sage's versions of GAP,"
echo "the PARI/GP interpreter, Maxima, or Singular etc. (by typing e.g."
echo "just 'gap' or 'gp') into a standard 'bin' directory, start Sage"
echo "by typing 'sage' (or './sage') and enter something like"
echo
echo " install_scripts('/usr/local/bin')"
echo
echo "at the Sage command prompt ('sage:')."
echo
echo "If you issued 'make', 'make all', or a similar command, then the"
echo "HTML version of the documentation will be built right now."
echo "Otherwise, if you want to (re)build the HTML documentation,"
echo "run 'make doc'. To build the PDF version, run 'make doc-pdf'."
echo
fi