[systemd-devel] [RFC PATCH 3/3] Invoke scripts with $PYTHON during build

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat Dec 22 01:09:24 PST 2012


The she-bang line is removed, since it is not used anyway.
---
 Makefile.am                       | 4 ++--
 make-man-index.py                 | 1 -
 src/locale/generate-kbd-model-map | 2 --
 3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 3f3408d..978a292 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3357,8 +3357,8 @@ dist_pkgdata_DATA += \
 dist_noinst_SCRIPT = \
 	src/locale/generate-kbd-model-map
 
-update-kbd-model-map:
-	src/locale/generate-kbd-model-map > src/locale/kbd-model-map
+update-kbd-model-map: src/locale/generate-kbd-model-map
+	$PYTHON $< > src/locale/kbd-model-map
 
 localectl_SOURCES = \
 	src/locale/localectl.c
diff --git a/make-man-index.py b/make-man-index.py
index 56f38ce..b40c963 100755
--- a/make-man-index.py
+++ b/make-man-index.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #  -*- Mode: python; indent-tabs-mode: nil -*- */
 #
 #  This file is part of systemd.
diff --git a/src/locale/generate-kbd-model-map b/src/locale/generate-kbd-model-map
index 624c517..b8ffa0f 100755
--- a/src/locale/generate-kbd-model-map
+++ b/src/locale/generate-kbd-model-map
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
 import sys
 import system_config_keyboard.keyboard_models
 
-- 
1.8.1.rc0.194.gaf2e3a9



More information about the systemd-devel mailing list