From 3c407731ea30a8cae94c1cffa1312e6848990c1e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 24 Oct 2013 22:40:58 +0200 Subject: set shebang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 4 ++-- src/gpp.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bf56f08..8299bd5 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ DATA = /share BIN = /bin PKGNAME = gpp PY3 = python3 -SHEBANG = /usr/$(BIN)/env $(PY3) +SHEBANG = /usr$(BIN)/env $(PY3) COMMAND = gpp LICENSES = $(DATA)/licenses @@ -29,7 +29,7 @@ info: gpp.info.gz gzip -9 -f "$*.info" gpp: src/gpp.py - VERSION=$(VERSION) $(PY3) "$<" < "$<" > "$@" + VERSION=$(VERSION) SHEBANG="$(SHEBANG)" $(PY3) "$<" -u -u < "$<" > "$@" .PHONY: install install: install-core install-doc diff --git a/src/gpp.py b/src/gpp.py index 5200b2a..53e9257 100755 --- a/src/gpp.py +++ b/src/gpp.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +#!@{SHEBANG} ''' gpp – Bash based general purpose preprocessor -- cgit v1.2.3-70-g09d2