Directly use pygmentize in Makefile (for scn script in Website)

This commit is contained in:
2023-05-27 17:42:06 +02:00
parent 28c2721036
commit fd72b512f8
16 changed files with 484 additions and 299 deletions

16
scnserver/_pygments/pygmentizew Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -o nounset # disallow usage of unset vars ( set -u )
set -o errexit # Exit immediately if a pipeline returns non-zero. ( set -e )
set -o errtrace # Allow the above trap be inherited by all functions in the script. ( set -E )
set -o pipefail # Return value of a pipeline is the value of the last (rightmost) command to exit with a non-zero status
IFS=$'\n\t' # Set $IFS to only newline and tab.
cd "$(dirname "$0")" || exit 1
1>&2 virtualenv env
1>&2 source env/bin/activate
1>&2 pip install Pygments
pygmentize "$@"