aboutgitcode
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-04-28 17:56:41 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-04-29 14:26:24 +0200
commit408acaef5d944e46dab9dfb750139fc497ae44c8 (patch)
tree393e35d050b6a630ba832f6cbba09dc52b0f378a
parentd34b4ebcbc97b1dd44cb24a7132f1924f20f16d7 (diff)
downloadmbuto-408acaef5d944e46dab9dfb750139fc497ae44c8.tar
mbuto-408acaef5d944e46dab9dfb750139fc497ae44c8.tar.gz
mbuto-408acaef5d944e46dab9dfb750139fc497ae44c8.tar.bz2
mbuto-408acaef5d944e46dab9dfb750139fc497ae44c8.tar.lz
mbuto-408acaef5d944e46dab9dfb750139fc497ae44c8.tar.xz
mbuto-408acaef5d944e46dab9dfb750139fc497ae44c8.tar.zst
mbuto-408acaef5d944e46dab9dfb750139fc497ae44c8.zip
mbuto: Add pre-push hook: build demos, render man page, and upload
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--README.md1
-rwxr-xr-xhooks/pre-push17
2 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0483c8b..1fcd5c6 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
Copyright (c) 2022 Red Hat GmbH
Author: Stefano Brivio <sbrivio@redhat.com>
-->
+[`man 1 mbuto`](/static/mbuto.1.html)
<link rel="stylesheet" type="text/css" href="/static/asciinema-player.css" />
<script src="/static/asciinema-player.min.js"></script>
<div id="demo_mbuto_div" style="display: grid; grid-template-columns: 1fr 1fr;">
diff --git a/hooks/pre-push b/hooks/pre-push
new file mode 100755
index 0000000..51a1a12
--- /dev/null
+++ b/hooks/pre-push
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+#
+# mbuto: Minimal Builder Using Terse Options
+#
+# hooks/pre-push - Run demos, render man page to HTML, upload everything
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+#
+# Copyright (c) 2022 Red Hat GmbH
+# Author: Stefano Brivio <sbrivio@redhat.com>
+#
+# cp hooks/pre-push .git/hooks/pre-push
+
+web/demo.sh
+groff -mandoc -T html mbuto.1 > mbuto.1.html
+
+scp *.cast *.cast.gz mbuto.1.html mbuto.sh:/var/www/mbuto/static/