commit: 811d253bc2e489e3c05632f04eedb7bc201b88ff
parent c3a1642eade3233a36aae48ff8b27a91027c1c40
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Sun, 27 Jan 2013 03:06:32 +0100
Merge remote-tracking branch 'jaimeMF/makefilePythonversion'
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -7,6 +7,7 @@ PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/man
SYSCONFDIR=/etc
+PYTHON=/usr/bin/env python
install: youtube-dl youtube-dl.1 youtube-dl.bash-completion
install -d $(DESTDIR)$(BINDIR)
@@ -27,7 +28,7 @@ tar: youtube-dl.tar.gz
youtube-dl: youtube_dl/*.py
zip --quiet youtube-dl youtube_dl/*.py
zip --quiet --junk-paths youtube-dl youtube_dl/__main__.py
- echo '#!/usr/bin/env python' > youtube-dl
+ echo '#! $(PYTHON)' > youtube-dl
cat youtube-dl.zip >> youtube-dl
rm youtube-dl.zip
chmod a+x youtube-dl