Package: tcm / 2.20+TSQD-8

unknown-platform.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Andreas Beckmann <anbe@debian.org>
Description: fail early on unknown platforms

--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ SHELL=/bin/sh
 
 # change this if you want to install it in a different place
 ifndef $(TCM_INSTALL_DIR)
-	TCM_INSTALL_DIR=$TCM_HOME
+	TCM_INSTALL_DIR=$(TCM_HOME)
 endif
 
 # the current version.
@@ -83,6 +83,8 @@ ifeq ($(UNAME),CYGWIN)
     TCM_INSTALL_CMD = /bin/cp -dRf
 endif
 
+TCM_PLATFORM	?= $(error UNKNOWN TCM_PLATFORM (UNAME=$(UNAME)))
+
 TCM_COMPILE_DIR=$(shell pwd)
 TCM_HOME=$(TCM_COMPILE_DIR)
 SUBDIRS = bin lib src doc