aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-10-24 22:40:58 +0200
committerMattias Andrée <maandree@operamail.com>2013-10-24 22:40:58 +0200
commit3c407731ea30a8cae94c1cffa1312e6848990c1e (patch)
tree5f04ba44dc122b2e6770235d03c9cc0f4c6ca70e
parentupdate gitignroe (diff)
downloadgpp-1.tar.gz
gpp-1.tar.bz2
gpp-1.tar.xz
set shebang1
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile4
-rwxr-xr-xsrc/gpp.py1
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