aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-01-11 16:02:29 -0500
committerJesús <heckyel@hyperbola.info>2020-01-11 16:02:29 -0500
commit25070962fb1a8036a705c0f5c19b3fb7c7f43c10 (patch)
tree2ac5c7e807904a8ab1403200479a3851b22afbc1
parent31965b870b4dc7fb79b0dd68934cea19d22fcfca (diff)
downloademmet-mode-25070962fb1a8036a705c0f5c19b3fb7c7f43c10.tar.lz
emmet-mode-25070962fb1a8036a705c0f5c19b3fb7c7f43c10.tar.xz
emmet-mode-25070962fb1a8036a705c0f5c19b3fb7c7f43c10.zip
fix non-security Environment
-rw-r--r--Makefile5
-rwxr-xr-xtools/json2hash2
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index eaf5190..875bfcd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
VERSION=1.0.0
DST=emmet-mode.el
+PYTHON ?= python3
# set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2
MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi)
@@ -25,10 +26,10 @@ emmet-mode.elc: emmet-mode.el
emacs --batch --eval '(byte-compile-file "emmet-mode.el")'
src/snippets.el: conf/snippets.json
- tools/json2hash conf/snippets.json -o src/snippets.el --defvar 'emmet-snippets'
+ $(PYTHON) tools/json2hash conf/snippets.json -o src/snippets.el --defvar 'emmet-snippets'
src/preferences.el: conf/preferences.json
- tools/json2hash conf/preferences.json -o src/preferences.el --defvar 'emmet-preferences'
+ $(PYTHON) tools/json2hash conf/preferences.json -o src/preferences.el --defvar 'emmet-preferences'
clean:
rm -f emmet-mode.elc emmet-mode.el README.txt src/snippets.el src/preferences.el emmet-mode-$(VERSION).tar.gz
diff --git a/tools/json2hash b/tools/json2hash
index ae2505f..ae4bec8 100755
--- a/tools/json2hash
+++ b/tools/json2hash
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import json