Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/bin/sage-spkg-info: Format dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed May 15, 2022
1 parent 46144d1 commit 3faf0ab
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build/bin/sage-spkg-info
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,27 @@ if [ -r "$PKG_SCRIPTS/type" ] ; then
echo
fi
echo
echo "Dependencies"
echo "------------"
echo
dep=
for dep_file in dependencies dependencies_order_only; do
if [ -r "$PKG_SCRIPTS/$dep_file" ] ; then
for dep in $(sed 's/^ *//; s/ *#.*//; q' "$PKG_SCRIPTS/$dep_file"); do
case $dep in
# Suppress dependencies on source file of the form $(SAGE_ROOT)/..., $(SAGE_SRC)/...
\$\(SAGE_*) ;;
# Do not use order-only syntax, too much information
\|) ;;
*) echo " - $dep";;
esac
done
fi
done
if [ -z "$dep" ]; then
echo "None"
fi
echo
echo "Version Information"
echo "-------------------"
echo
Expand Down

0 comments on commit 3faf0ab

Please sign in to comment.