From 408acaef5d944e46dab9dfb750139fc497ae44c8 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 28 Apr 2022 17:56:41 +0200 Subject: mbuto: Add pre-push hook: build demos, render man page, and upload Signed-off-by: Stefano Brivio --- hooks/pre-push | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 hooks/pre-push (limited to 'hooks/pre-push') 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 +# +# 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/ -- cgit v1.2.3