From 66a607955036f1dca1d19a9bcdccffa0d850a226 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 3 Feb 2013 14:29:42 +0100 Subject: [PATCH] expand the right PYTHON into rip and bash-compgen --- bin/rip.in | 2 +- configure.ac | 2 ++ etc/bash_completion.d/Makefile.am | 2 +- etc/bash_completion.d/{bash-compgen => bash-compgen.in} | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) rename etc/bash_completion.d/{bash-compgen => bash-compgen.in} (99%) diff --git a/bin/rip.in b/bin/rip.in index 5342e75..ac38958 100755 --- a/bin/rip.in +++ b/bin/rip.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!@PYTHON@ # -*- Mode: Python -*- # vi:si:et:sw=4:sts=4:ts=4 diff --git a/configure.ac b/configure.ac index beb0706..886a527 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,8 @@ AM_CONDITIONAL(HAVE_PYCHECKER, test "x$PYCHECKER" = "xyes") dnl output stuff AC_CONFIG_FILES([bin/rip], [chmod +x bin/rip]) +AC_CONFIG_FILES([etc/bash_completion.d/bash-compgen], + [chmod +x etc/bash_completion.d/bash-compgen]) AC_OUTPUT( Makefile diff --git a/etc/bash_completion.d/Makefile.am b/etc/bash_completion.d/Makefile.am index a56a6c3..be60999 100644 --- a/etc/bash_completion.d/Makefile.am +++ b/etc/bash_completion.d/Makefile.am @@ -4,7 +4,7 @@ completion_DATA = rip BUILT_SOURCES = rip CLEANFILES = rip -EXTRA_DIST = bash-compgen +EXTRA_DIST = bash-compgen.in bash-compgen ENTRY = morituri.rip.main.Rip diff --git a/etc/bash_completion.d/bash-compgen b/etc/bash_completion.d/bash-compgen.in similarity index 99% rename from etc/bash_completion.d/bash-compgen rename to etc/bash_completion.d/bash-compgen.in index bf21563..263250c 100755 --- a/etc/bash_completion.d/bash-compgen +++ b/etc/bash_completion.d/bash-compgen.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!@PYTHON@ # -*- Mode: Python -*- # vi:si:et:sw=4:sts=4:ts=4