This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/bin/sage: Delegate options that pertain to SAGE_ROOT or sage-the-…
…distribution to the new script build/bin/sage-site
- Loading branch information
Matthias Koeppe
committed
Jun 16, 2020
1 parent
20b2a93
commit 152e581
Showing
2 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
# Handle options of the src/bin/sage script that pertain to SAGE_ROOT or sage-the-distribution. | ||
|
||
if [ "$1" = '-package' -o "$1" = "--package" ]; then | ||
shift | ||
exec sage-package $@ | ||
fi | ||
|
||
if [ "$1" = '-optional' -o "$1" = "--optional" ]; then | ||
shift | ||
exec sage-list-packages optional $@ | ||
fi | ||
|
||
if [ "$1" = '-experimental' -o "$1" = "--experimental" ]; then | ||
shift | ||
exec sage-list-packages experimental $@ | ||
fi | ||
|
||
if [ "$1" = '-standard' -o "$1" = "--standard" ]; then | ||
shift | ||
exec sage-list-packages standard $@ | ||
fi | ||
|
||
if [ "$1" = '-installed' -o "$1" = "--installed" ]; then | ||
shift | ||
exec sage-list-packages all --installed-only $@ | ||
fi | ||
|
||
if [ "$1" = '-p' ]; then | ||
echo "Error: Installing old-style SPKGs is no longer supported." | ||
exit 1 | ||
fi | ||
|
||
if [ "$1" = '-info' -o "$1" = '--info' ]; then | ||
shift | ||
for PKG in "$@" | ||
do | ||
sage-spkg --info "$PKG" || exit $? | ||
done | ||
exit 0 | ||
fi | ||
|
||
echo "Error: Unknown option: $1" | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters