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.
Merge branch 'develop' into u/mantepse/gcis
- Loading branch information
Showing
555 changed files
with
23,947 additions
and
6,721 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
Sage version 6.9.beta1, released 2015-08-05 | ||
Sage version 6.9.beta6, released 2015-09-10 |
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,40 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# sage-logger COMMAND LOGFILE | ||
# | ||
# Evaluate shell command COMMAND while logging stdout and stderr to | ||
# LOGFILE. If either the command or the logging failed, return a | ||
# non-zero exit status. | ||
# | ||
# AUTHOR: | ||
# | ||
# - Jeroen Demeyer (2015-07-26): initial version based on old pipestatus | ||
# script (#18953) | ||
# | ||
#***************************************************************************** | ||
# Copyright (C) 2015 Jeroen Demeyer <jdemeyer@cage.ugent.be> | ||
# | ||
# Distributed under the terms of the GNU General Public License (GPL) | ||
# as published by the Free Software Foundation; either version 2 of | ||
# the License, or (at your option) any later version. | ||
# http://www.gnu.org/licenses/ | ||
#***************************************************************************** | ||
|
||
cmd="$1" | ||
logfile="$2" | ||
logdir=`dirname "$logfile"` | ||
|
||
mkdir -p "$logdir" | ||
|
||
# Redirect stdout and stderr to a subprocess running tee. | ||
# We trap SIGINT such that SIGINT interrupts the main process being | ||
# run, not the logging. | ||
( exec 2>&1; eval "$cmd" ) | ( trap '' SIGINT; tee -a "$logfile" ) | ||
|
||
pipestatus=(${PIPESTATUS[*]}) | ||
|
||
if [ ${pipestatus[1]} -ne 0 ]; then | ||
exit ${pipestatus[1]} | ||
else | ||
exit ${pipestatus[0]} | ||
fi |
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
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
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
Oops, something went wrong.