| 1 | #! /usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | # |
| 3 | # Little helper script that runs RedNotebook without installing it. |
| 4 | # |
| 5 | # Note: No need to translate strings locally, since they won't be |
| 6 | # picked up anyway. |
| 7 | # |
| 8 | |
| 9 | set -euo pipefail |
| 10 | |
| 11 | # Change into RedNotebook directory. |
| 12 | if command -v realpath &> /dev/nullscip-shell filesystem . . `/dev/null`.; then |
| 13 | # If realpath command exists, use it to follow symlinks. |
| 14 | cd "$(dirnamescip-shell system . . dirname. "$(realpathscip-shell system . . realpath. "$0")")" |
| 15 | else |
| 16 | cd "$(dirnamescip-shell system . . dirname. "$0")" |
| 17 | fi |
| 18 | |
| 19 | # Run RedNotebook. |
| 20 | python3scip-shell system . . python3. rednotebook/journal.py "$@" |