summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-18 20:35:36 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-18 20:35:36 (EDT)
commit8f76c9ccbfee4bc445ea8d81cfed35cb932bf6d0 (patch)
treeea8daa9c616096d968cdf25520c0afb899c88950
parent51af094f5a7b4ab7811a5f249f9689637ac813b3 (diff)
examples/proteanos-motd/*: Add color MOTD example
-rw-r--r--Makefile.am1
-rw-r--r--examples/.gitignore1
-rw-r--r--examples/local.mk17
-rw-r--r--examples/proteanos-motd/motd14
-rw-r--r--examples/proteanos-motd/mplus_1mn_medium_10x14.pngbin0 -> 3628 bytes
-rw-r--r--examples/proteanos-motd/mplus_1mn_regular_12x17.pngbin0 -> 4047 bytes
-rw-r--r--examples/proteanos-motd/mplus_1mn_regular_14x19.pngbin0 -> 4804 bytes
-rw-r--r--examples/proteanos-motd/mplus_1mn_regular_16x22.pngbin0 -> 6359 bytes
8 files changed, 33 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 97cd80e..50d9f32 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -64,6 +64,7 @@ version.c: $(fbcon2png_OBJECTS) $(fbcon2png_DEPENDENCIES)
$(AM_V_GEN)printf 'const char *PACKAGE_VERSION_GIT = "%s";\n' \
"$(PACKAGE_VERSION_GIT)" >version.c
+include $(top_srcdir)/examples/local.mk
include $(top_srcdir)/lib/fonts/local.mk
include $(top_srcdir)/src/local.mk
diff --git a/examples/.gitignore b/examples/.gitignore
new file mode 100644
index 0000000..74ed96f
--- /dev/null
+++ b/examples/.gitignore
@@ -0,0 +1 @@
+!*.png
diff --git a/examples/local.mk b/examples/local.mk
new file mode 100644
index 0000000..f147d4a
--- /dev/null
+++ b/examples/local.mk
@@ -0,0 +1,17 @@
+EXTRA_DIST += \
+ %reldir%/proteanos-motd/motd
+
+FONTS_MPLUS = \
+ MPLUS_1MN_MEDIUM_10x14 \
+ MPLUS_1MN_REGULAR_12x17 \
+ MPLUS_1MN_REGULAR_14x19 \
+ MPLUS_1MN_REGULAR_16x22
+
+# Update examples *in source tree*.
+update-examples:
+ set -e; for F in $(FONTS_MPLUS); do \
+ f="$$(printf '%s' "$${F}" | tr '[A-Z]' '[a-z]')"; \
+ $(top_builddir)/fbcon2png -f "$${F}" \
+ '$(top_srcdir)/%reldir%/proteanos-motd/motd' \
+ "$(top_srcdir)/%reldir%/proteanos-motd/$${f}.png"; \
+ done
diff --git a/examples/proteanos-motd/motd b/examples/proteanos-motd/motd
new file mode 100644
index 0000000..77a8cce
--- /dev/null
+++ b/examples/proteanos-motd/motd
@@ -0,0 +1,14 @@
+  _
+ .' `.
+ __ ___ _ | |.'
+| `. _ _ _|_ _ __ _ .' `. .' `- ~~| |~~~
+|__.' |.' .' `. | .' `. _;. |' `. | | `-. ~~~~
+| | | | | |---' .' | | | | | `.
+| | `._.' `.- `._. \_.'| | | `.___.' `._.' TM
+
+The programs included with ProteanOS BusyBox/Linux-libre are free
+software; the exact distribution terms for each program are described in
+the individual files in /usr/share/doc/*/copyright.
+
+ProteanOS BusyBox/Linux-libre comes with ABSOLUTELY NO WARRANTY, to the
+extent permitted by applicable law.
diff --git a/examples/proteanos-motd/mplus_1mn_medium_10x14.png b/examples/proteanos-motd/mplus_1mn_medium_10x14.png
new file mode 100644
index 0000000..c0af534
--- /dev/null
+++ b/examples/proteanos-motd/mplus_1mn_medium_10x14.png
Binary files differ
diff --git a/examples/proteanos-motd/mplus_1mn_regular_12x17.png b/examples/proteanos-motd/mplus_1mn_regular_12x17.png
new file mode 100644
index 0000000..5d1b1d3
--- /dev/null
+++ b/examples/proteanos-motd/mplus_1mn_regular_12x17.png
Binary files differ
diff --git a/examples/proteanos-motd/mplus_1mn_regular_14x19.png b/examples/proteanos-motd/mplus_1mn_regular_14x19.png
new file mode 100644
index 0000000..da09e16
--- /dev/null
+++ b/examples/proteanos-motd/mplus_1mn_regular_14x19.png
Binary files differ
diff --git a/examples/proteanos-motd/mplus_1mn_regular_16x22.png b/examples/proteanos-motd/mplus_1mn_regular_16x22.png
new file mode 100644
index 0000000..2d94873
--- /dev/null
+++ b/examples/proteanos-motd/mplus_1mn_regular_16x22.png
Binary files differ