Directly use pygmentize in Makefile (for scn script in Website)
This commit is contained in:
16
scnserver/_pygments/pygmentizew
Executable file
16
scnserver/_pygments/pygmentizew
Executable 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 "$@"
|
Reference in New Issue
Block a user