From 0c4fb77ad1f499068771202b96a925f5a8a7fb7a Mon Sep 17 00:00:00 2001 From: r00t Date: Tue, 15 Nov 2016 00:34:22 -0500 Subject: [PATCH] updating TODO before taking a break --- TODO | 3 +++ extra/pre-build.d/etc/os-release | 7 +++++++ templates/VERSION_INFO.txt.j2 | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 extra/pre-build.d/etc/os-release create mode 100644 templates/VERSION_INFO.txt.j2 diff --git a/TODO b/TODO index 7acc4f5..72e6030 100644 --- a/TODO +++ b/TODO @@ -1 +1,4 @@ - maybe use ZConfig? https://pypi.python.org/pypi/ZConfig +- templating via jinja2: +-- for VERSION_INFO.txt +-- for syslinux/isolinux configs diff --git a/extra/pre-build.d/etc/os-release b/extra/pre-build.d/etc/os-release new file mode 100644 index 0000000..30e5cf3 --- /dev/null +++ b/extra/pre-build.d/etc/os-release @@ -0,0 +1,7 @@ +NAME="Arch Linux" +ID=arch +PRETTY_NAME="Arch Linux" +ANSI_COLOR="0;36" +HOME_URL="https://www.archlinux.org/" +SUPPORT_URL="https://bbs.archlinux.org/" +BUG_REPORT_URL="https://bugs.archlinux.org/" diff --git a/templates/VERSION_INFO.txt.j2 b/templates/VERSION_INFO.txt.j2 new file mode 100644 index 0000000..b9f9387 --- /dev/null +++ b/templates/VERSION_INFO.txt.j2 @@ -0,0 +1,5 @@ +Version: {{ build['ver'] }} +Build: {{ build['name'] }} +Time: {{ build['time'] }} +Machine: {{ build['host'] }} +User: {{ build['user'] }} ({{ build['realuser'] }})