Blame otp-0008-Do-not-install-.bat-files-on-non-win32-machines.patch

Hans Ulrich Niedermann b61466
From 811adac1504284c12bdacc42d11975968cfa05dc Mon Sep 17 00:00:00 2001
Peter Lemenkov 96952b
From: Peter Lemenkov <lemenkov@gmail.com>
Peter Lemenkov 96952b
Date: Sat, 19 Jun 2010 10:25:29 +0400
Hans Ulrich Niedermann 696873
Subject: [PATCH] Do not install *.bat files on non-win32 machines
Peter Lemenkov 96952b
Peter Lemenkov 96952b
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Peter Lemenkov 96952b
---
Peter Lemenkov 96952b
 lib/observer/src/Makefile |    8 ++++++--
Peter Lemenkov 96952b
 lib/webtool/priv/Makefile |    8 ++++++--
Peter Lemenkov 96952b
 2 files changed, 12 insertions(+), 4 deletions(-)
Peter Lemenkov 96952b
Peter Lemenkov 96952b
diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile
Hans Ulrich Niedermann b61466
index b4eb518..353daef 100644
Peter Lemenkov 96952b
--- a/lib/observer/src/Makefile
Peter Lemenkov 96952b
+++ b/lib/observer/src/Makefile
Peter Lemenkov 96952b
@@ -56,11 +56,15 @@ TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(APP_TARGET) $(APPUP_TARGET)
Peter Lemenkov 96952b
 PRIVDIR= ../priv
Peter Lemenkov 96952b
 WEBTOOLFILES= $(PRIVDIR)/crashdump_viewer.tool
Peter Lemenkov 96952b
 BINDIR= $(PRIVDIR)/bin
Peter Lemenkov 96952b
+ifeq ($(findstring win32,$(TARGET)),win32)
Peter Lemenkov 96952b
+WIN32_EXECUTABLES= $(BINDIR)/etop.bat $(BINDIR)/getop.bat
Peter Lemenkov 96952b
+else
Peter Lemenkov 96952b
+WIN32_EXECUTABLES=
Peter Lemenkov 96952b
+endif
Peter Lemenkov 96952b
 EXECUTABLES= \
Peter Lemenkov 96952b
 	$(BINDIR)/etop \
Peter Lemenkov 96952b
 	$(BINDIR)/getop \
Peter Lemenkov 96952b
-	$(BINDIR)/etop.bat \
Peter Lemenkov 96952b
-	$(BINDIR)/getop.bat
Peter Lemenkov 96952b
+	$(WIN32_EXECUTABLES)
Peter Lemenkov 96952b
 CDVDIR= $(PRIVDIR)/crashdump_viewer
Peter Lemenkov 96952b
 GIF_FILES= \
Peter Lemenkov 96952b
 	$(CDVDIR)/collapsd.gif \
Peter Lemenkov 96952b
diff --git a/lib/webtool/priv/Makefile b/lib/webtool/priv/Makefile
Peter Lemenkov 96952b
index 56ab772..c29e912 100644
Peter Lemenkov 96952b
--- a/lib/webtool/priv/Makefile
Peter Lemenkov 96952b
+++ b/lib/webtool/priv/Makefile
Peter Lemenkov 96952b
@@ -39,8 +39,12 @@ HTDOCS_FILES =  root/doc/index.html \
Peter Lemenkov 96952b
 	        root/doc/tool_management.html \
Peter Lemenkov 96952b
 	        root/doc/start_info.html 
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
-SCRIPTS = bin/start_webtool \
Peter Lemenkov 96952b
-	  bin/start_webtool.bat
Peter Lemenkov 96952b
+ifeq ($(findstring win32,$(TARGET)),win32)
Peter Lemenkov 96952b
+WIN32_SCRIPTS= bin/start.bat
Peter Lemenkov 96952b
+else
Peter Lemenkov 96952b
+WIN32_SCRIPTS=
Peter Lemenkov 96952b
+endif
Peter Lemenkov 96952b
+SCRIPTS = bin/start_webtool $(WIN32_SCRIPTS)
Peter Lemenkov 96952b
 
Peter Lemenkov 96952b
 # ----------------------------------------------------
Peter Lemenkov 96952b
 # FLAGS
Peter Lemenkov 96952b
-- 
Hans Ulrich Niedermann f7fc57
1.7.3.5
Peter Lemenkov 96952b