From 1da2132956748d9c713ea4f6ef734015682fa030 Mon Sep 17 00:00:00 2001 From: Forest Date: Mon, 8 Sep 2014 11:01:29 -0700 Subject: [PATCH] Avoid spaces in the productID / installation directory name. The productID is used as the installation directory name, and a space character within it can be problematic for some packaging tools. We therefore use a - instead. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7da514dda1..d04ddb2df3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,8 @@ ACLOCAL_AMFLAGS = -I autoconf/m4 ## Black magic (read: sed) for getting the product ID as defined in code, not by the autotools. ## Quotes are making vim's highlighting of this even worse, so just escape everything, ## including the escapes. Make it lowercase to match ArchHooks::MountInitialFileSystems(). -productID := $(shell sed -nr /define\\s+PRODUCT_ID_BARE/\{s/.*define\\s+PRODUCT_ID_BARE\\s+\(.+\)/\\1/\;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/\;p\;q\} $(srcdir)/src/ProductInfo.h) +## Replace space with - so package build tools won't choke on the installation directory. +productID := $(shell sed -nr /define\\s+PRODUCT_ID_BARE/\{s/.*define\\s+PRODUCT_ID_BARE\\s+\(.+\)/\\1/\;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ\ /abcdefghijklmnopqrstuvwxyz-/\;p\;q\} $(srcdir)/src/ProductInfo.h) installFiles = src/stepmania if HAVE_GTK