|
7 | 7 | PKG_BASE=$1
|
8 | 8 | if [ -n "$OUTPUT_DIR" ]; then
|
9 | 9 | exec > "$OUTPUT_DIR"/$PKG_BASE.rst
|
| 10 | +fi |
| 11 | +if [ -n "$OUTPUT_RST" ]; then |
10 | 12 | echo ".. _spkg_$PKG_BASE:"
|
11 | 13 | echo
|
| 14 | + ref () { echo ":ref:\`$1\`"; } |
| 15 | + issue () { echo ":issue:\`$1\`"; } |
| 16 | + code () { echo "\`\`$*\`\`"; } |
| 17 | +else |
| 18 | + ref () { echo "$1"; } |
| 19 | + issue () { echo "https://github.com/sagemath/sage/issues/$1"; } |
| 20 | + code () { echo "$1"; } |
12 | 21 | fi
|
13 | 22 | PKG_SCRIPTS="$SAGE_ROOT/build/pkgs/$PKG_BASE"
|
14 | 23 | for ext in rst txt; do
|
@@ -45,9 +54,9 @@ for dep_file in dependencies dependencies_order_only; do
|
45 | 54 | # Dependencies like $(BLAS)
|
46 | 55 | \$\(*) echo "- $dep";;
|
47 | 56 | # Looks like a package
|
48 |
| - *) if [ -n "$OUTPUT_RST" -a -r "$SAGE_ROOT/build/pkgs/$dep/SPKG.rst" ]; then |
| 57 | + *) if [ -r "$SAGE_ROOT/build/pkgs/$dep/SPKG.rst" ]; then |
49 | 58 | # This RST label is set in src/doc/bootstrap
|
50 |
| - echo "- :ref:\`spkg_$dep\`" |
| 59 | + echo "- $(ref spkg_$dep)" |
51 | 60 | else
|
52 | 61 | echo "- $dep"
|
53 | 62 | fi;;
|
@@ -120,15 +129,15 @@ else
|
120 | 129 | if [ -f "${SPKG_CONFIGURE}" ]; then
|
121 | 130 | if grep -q SAGE_PYTHON_PACKAGE_CHECK "${SPKG_CONFIGURE}"; then
|
122 | 131 | echo "If the system package is installed and if the (experimental) option"
|
123 |
| - echo "--enable-system-site-packages is passed to ./configure, then ./configure" |
| 132 | + echo "$(code --enable-system-site-packages) is passed to $(code ./configure), then $(code ./configure)" |
124 | 133 | echo "will check if the system package can be used."
|
125 | 134 | else
|
126 |
| - echo "If the system package is installed, ./configure will check if it can be used." |
| 135 | + echo "If the system package is installed, $(code ./configure) will check if it can be used." |
127 | 136 | fi
|
128 | 137 | else
|
129 | 138 | echo "However, these system packages will not be used for building Sage"
|
130 |
| - echo "because spkg-configure.m4 has not been written for this package;" |
131 |
| - echo "see https://github.com/sagemath/sage/issues/27330" |
| 139 | + echo "because $(code spkg-configure.m4) has not been written for this package;" |
| 140 | + echo "see $(issue 27330)" |
132 | 141 | fi
|
133 | 142 | fi
|
134 | 143 | echo
|
0 commit comments