File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change 23
23
code () { echo " $1 " ; }
24
24
tab () { echo " $1 :" ; }
25
25
fi
26
- PKG_SCRIPTS=" $SAGE_ROOT /build/pkgs/$PKG_BASE "
26
+ if ! props=$( sage-package properties $PKG_BASE 2> /dev/null) ; then
27
+ echo >&2 " sage-spkg-info: unknown package $PKG_BASE "
28
+ exit 1
29
+ fi
30
+ eval " $props "
31
+ eval PKG_SCRIPTS=\$ path_$PKG_BASE
27
32
for ext in rst txt; do
28
33
SPKG_FILE=" $PKG_SCRIPTS /SPKG.$ext "
29
34
if [ -f " $SPKG_FILE " ]; then
44
49
echo " Dependencies"
45
50
echo " ------------"
46
51
echo
47
- dep=
48
- for dep_file in dependencies dependencies_order_only; do
49
- if [ -r " $PKG_SCRIPTS /$dep_file " ] ; then
50
- for dep in $( sed ' s/^ *//; s/ *#.*//; q' " $PKG_SCRIPTS /$dep_file " ) ; do
51
- case " $dep " in
52
- # Do not use order-only syntax, too much information
53
- \| ) ;;
54
- # Suppress dependencies on source file of the form $(SAGE_ROOT)/..., $(SAGE_SRC)/...
55
- \$\( SAGE_* ) ;;
52
+ eval $( sage-package properties :all:)
53
+ for dep in $( sage-package dependencies $PKG_BASE ) ; do
54
+ case " $dep " in
55
+ # Suppress dependencies on source files, e.g. of the form $(SAGE_ROOT)/..., $(SAGE_SRC)/...
56
+ * /* ) ;;
56
57
# Suppress FORCE
57
58
FORCE) ;;
58
59
# Dependencies like $(BLAS)
59
60
\$\( * ) echo " - $dep " ;;
60
61
# Looks like a package
61
- * ) if [ -r " $SAGE_ROOT /build/pkgs/ $dep /SPKG.rst" ] ; then
62
+ * ) if eval test -r " \$ path_ $dep /SPKG.rst" ; then
62
63
# This RST label is set in src/doc/bootstrap
63
64
echo " - $( spkg $dep ) "
64
65
else
65
66
echo " - $dep "
66
67
fi ;;
67
- esac
68
- done
69
- fi
68
+ esac
70
69
done
71
70
echo
72
71
echo " Version Information"
You can’t perform that action at this time.
0 commit comments