From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master

fonts: pull all artifacts from host

Signed-off-by: Waldemar Kozaczuk <[email protected]>

---
diff --git a/fonts/.gitignore b/fonts/.gitignore
--- a/fonts/.gitignore
+++ b/fonts/.gitignore
@@ -0,0 +1 @@
+usr.manifest
diff --git a/fonts/Makefile b/fonts/Makefile
--- a/fonts/Makefile
+++ b/fonts/Makefile
@@ -0,0 +1,13 @@
+.PHONY: module clean
+
+liberation_path := $(shell find /usr/share/fonts -type d -name liberation)
+
+module: usr.manifest
+
+usr.manifest:
+       cp usr.manifest.skel usr.manifest
+       echo '$(liberation_path)/**: $(liberation_path)/**' >> usr.manifest
+       grep -il liberation /etc/fonts/conf.d/* | awk '{ printf "%s: %s\n", 
$$0, $$0 }' >> usr.manifest
+
+clean:
+       rm usr.manifest
diff --git a/fonts/usr.manifest b/fonts/usr.manifest
--- a/fonts/usr.manifest
+++ b/fonts/usr.manifest
@@ -1,43 +0,0 @@
-#
-# Copyright (C) 2014 Cloudius Systems, Ltd.
-#
-# This work is open source software, licensed under the terms of the
-# BSD license as described in the LICENSE file in the top-level directory.
-#
-
-[manifest]
-/usr/lib/&/libfontconfig.so.1: %(miscbase)s/usr/lib64/&
-/usr/lib/&/libfreetype.so.6: %(miscbase)s/usr/lib64/&
-/&/usr/share/fontconfig/conf.avail/59-liberation-mono.conf: %(miscbase)s/&
-/&/usr/share/fontconfig/conf.avail/59-liberation-sans.conf: %(miscbase)s/&
-/&/usr/share/fontconfig/conf.avail/59-liberation-serif.conf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationMono-Bold.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationMono-BoldItalic.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationMono-Italic.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationMono-Regular.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationSans-Bold.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationSans-BoldItalic.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationSans-Italic.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationSans-Regular.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationSerif-Bold.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationSerif-BoldItalic.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationSerif-Italic.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/LiberationSerif-Regular.ttf: %(miscbase)s/&
-/&/usr/share/fonts/liberation/fonts.dir: %(miscbase)s/&
-/&/usr/share/fonts/liberation/fonts.scale: %(miscbase)s/&
-/&/etc/fonts/fonts.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/20-unhint-small-vera.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/25-no-bitmap-fedora.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/25-unhint-nonlatin.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/30-metric-aliases.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/30-urw-aliases.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/40-nonlatin.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/45-latin.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/65-fonts-persian.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/65-nonlatin.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/69-unifont.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/80-delicious.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/90-synthetic.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/59-liberation-mono.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/59-liberation-sans.conf: %(miscbase)s/&
-/&/etc/fonts/conf.d/59-liberation-serif.conf: %(miscbase)s/&
diff --git a/fonts/usr.manifest.skel b/fonts/usr.manifest.skel
--- a/fonts/usr.manifest.skel
+++ b/fonts/usr.manifest.skel
@@ -0,0 +1,10 @@
+#
+# Copyright (C) 2014 Cloudius Systems, Ltd.
+#
+# This work is open source software, licensed under the terms of the
+# BSD license as described in the LICENSE file in the top-level directory.
+#
+
+[manifest]
+/etc/fonts/fonts.conf: /etc/fonts/fonts.conf
+/usr/share/fontconfig/conf.avail/**: /usr/share/fontconfig/conf.avail/**

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/00000000000007893905a4b0ba2b%40google.com.

Reply via email to