summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 01:07:15 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-15 01:07:15 (EDT)
commite4c6f93340f3abe1f618e5f0ac2d0d2c3a75e33a (patch)
tree31f3904f7d63fda4780ae840ef39dd4716b63de3
parentd6f809e85faaf7182e6f3697400438792e9d4758 (diff)
scripts/gen-mplus-patch.pl: Fix Makefile newlines
-rwxr-xr-xscripts/gen-mplus-patch.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/gen-mplus-patch.pl b/scripts/gen-mplus-patch.pl
index 91b3613..a0ac868 100755
--- a/scripts/gen-mplus-patch.pl
+++ b/scripts/gen-mplus-patch.pl
@@ -167,8 +167,9 @@ sub patch_makefile
sprintf('font-objs-$(CONFIG_FONT_MPLUS_%s_%s_%dx%d)',
$face, $weight, $width, $height));
$len = $max_var_len - $len;
- $inject .= sprintf('font-objs-$(CONFIG_FONT_MPLUS_%s_%s_%dx%d)'
- . "%${len}s += font_mplus_%s_%s_%dx%d.o\n",
+ $inject .= sprintf("\n" .
+ 'font-objs-$(CONFIG_FONT_MPLUS_%s_%s_%dx%d)%' . $len .
+ 's += font_mplus_%s_%s_%dx%d.o',
uc($face), uc($weight), $width, $height,
'', $face, $weight, $width, $height);
}