aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch/0002-usb-modeswitch-leave-script-munging-to-recipe.patch
blob: 4f549fd975c0813f966e90bd20de0e9c9e71eaec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 86f80442a3fb2b7f9bd1d4ba339fff967c04c3a7 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Sat, 28 Jan 2012 12:17:47 +0100
Subject: [PATCH] usb-modeswitch: leave script munging to recipe

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---

Upstream-Status: Unknown

 Makefile |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/Makefile b/Makefile
index a71780a..a26b8de 100644
--- a/Makefile
+++ b/Makefile
@@ -51,20 +51,9 @@
 	install -D --mode=644 usb_modeswitch.conf $(ETCDIR)/usb_modeswitch.conf
 	install -D --mode=644 usb_modeswitch.1 $(MANDIR)/usb_modeswitch.1
 	install -d $(DESTDIR)/var/lib/usb_modeswitch
-
-install-script:
-	@SHELL=`which tclsh 2>/dev/null`; \
-	if [ -z $$SHELL ]; then \
-		SHELL="`which jimsh 2>/dev/null`"; \
-		if [ -z $$SHELL ]; then \
-			echo "Warning: no Tcl interpreter found!"; \
-			SHELL="/usr/bin/tclsh"; \
-		fi \
-	fi ; \
-	sed 's_!/usr/bin/tclsh_!'"$$SHELL"'_' <usb_modeswitch.tcl >usb_modeswitch_dispatcher
 	install -D --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher
 
-install: install-common install-script
+install: install-common
 
 install-shared: dispatcher-dynamic install-common
 	install -D -s --mode=755 usb_modeswitch_dispatcher $(SBINDIR)/usb_modeswitch_dispatcher