commit cb4abe6ecca2c35293a300645a243aab392ade14
parent 42daef7faaf13fea55d73d74b0fcd52837f2f650
Author: parazyd <parazyd@dyne.org>
Date: Thu, 14 Jan 2021 11:13:02 +0100
Add ufl fonts as well.
Diffstat:
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -10,7 +10,11 @@ OFL_LICENSE = OFL-1.1
OFL_SHLICENSE = ofl
OFL_FONTS = $(shell ./tools/getfonts $(REPO)/ofl)
-all: $(APACHE_FONTS) $(OFL_FONTS)
+UFL_LICENSE = UbuntuFontLicense-1.0
+UFL_SHLICENSE = ufl
+UFL_FONTS = $(shell ./tools/getfonts $(REPO)/ufl)
+
+all: $(APACHE_FONTS) $(OFL_FONTS) $(UFL_FONTS)
update:
cd $(REPO) && git pull origin master
@@ -39,4 +43,15 @@ $(OFL_FONTS):
-e "s,@FONT@,$(shell basename $@)," \
< ebuild.skel > $@/$(shell basename $@)-9999.ebuild
+$(UFL_FONTS):
+ mkdir -p $@
+ cp metadata.skel $@/metadata.xml
+ sed \
+ -e "s,@PRETTYNAME@,$(shell ./tools/prettyname $(REPO)/ufl/$(shell basename $@) | tr '+' ' ')," \
+ -e "s,@PRETTYNAMEURL@,$(shell ./tools/prettyname $(REPO)/ufl/$(shell basename $@))," \
+ -e "s,@LICENSE@,$(UFL_LICENSE)," \
+ -e "s,@SHLICENSE@,$(UFL_SHLICENSE)," \
+ -e "s,@FONT@,$(shell basename $@)," \
+ < ebuild.skel > $@/$(shell basename $@)-9999.ebuild
+
.PHONY: all update