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

Commit

Permalink
src/doc/bootstrap: Get recommended spkg from build/pkgs/_recommended/…
Browse files Browse the repository at this point in the history
…dependencies
  • Loading branch information
Matthias Koeppe committed Feb 2, 2022
1 parent 016ff89 commit 855314d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/pkgs/_recommended/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pandoc ffmpeg imagemagick texlive
6 changes: 4 additions & 2 deletions src/doc/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ mkdir -p "$OUTPUT_DIR"

shopt -s extglob

RECOMMENDED_SPKG_PATTERN="@(_recommended$(for a in $(head -n 1 build/pkgs/_recommended/dependencies); do echo -n "|"$a; done))"

for SYSTEM in arch debian fedora cygwin homebrew conda; do
SYSTEM_PACKAGES=
OPTIONAL_SYSTEM_PACKAGES=
Expand All @@ -42,7 +44,7 @@ for SYSTEM in arch debian fedora cygwin homebrew conda; do
*:standard)
SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES"
;;
_recommended:*|pandoc:*|ffmpeg:*|imagemagick:*|texlive:*)
$RECOMMENDED_SPKG_PATTERN:*)
RECOMMENDED_SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES"
;;
*)
Expand Down Expand Up @@ -89,7 +91,7 @@ for SYSTEM in arch debian fedora cygwin homebrew conda; do
done
else
if [ "${BOOTSTRAP_QUIET}" = "no" ]; then
echo >&2 $0:$LINENO: installing "$OUTPUT_DIR"/$SYSTEM.txt and "$OUTPUT_DIR"/$SYSTEM-optional.txt
echo >&2 $0:$LINENO: installing "$OUTPUT_DIR"/$SYSTEM"*.txt"
fi
echo "$(sage-print-system-package-command $SYSTEM --prompt --sudo install $(echo $(echo $SYSTEM_PACKAGES | xargs -n 1 echo | sort)))" > "$OUTPUT_DIR"/$SYSTEM.txt
echo "$(sage-print-system-package-command $SYSTEM --prompt --sudo install $(echo $(echo $OPTIONAL_SYSTEM_PACKAGES | xargs -n 1 echo | sort)))" > "$OUTPUT_DIR"/$SYSTEM-optional.txt
Expand Down

0 comments on commit 855314d

Please sign in to comment.