diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-04-28 17:56:41 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-04-29 14:26:24 +0200 |
commit | 408acaef5d944e46dab9dfb750139fc497ae44c8 (patch) | |
tree | 393e35d050b6a630ba832f6cbba09dc52b0f378a /hooks/pre-push | |
parent | d34b4ebcbc97b1dd44cb24a7132f1924f20f16d7 (diff) | |
download | mbuto-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>
Diffstat (limited to 'hooks/pre-push')
-rwxr-xr-x | hooks/pre-push | 17 |
1 files changed, 17 insertions, 0 deletions
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/ |