pungi/doc/update-docs.sh
Dennis Gilmore 1ab4144dfb fix up the paths to the docs
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-01 11:27:24 -06:00

21 lines
430 B
Bash
Executable File

#!/bin/bash
# Copyright (C) 2015 Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0
git clone https://pagure.io/pungi.git /tmp/pungi
pushd /tmp/pungi/doc
make html
popd
git clone ssh://git@pagure.io/docs/pungi.git /tmp/pungi-doc
pushd /tmp/pungi-doc
git rm -fr ./*
cp -r /tmp/pungi/doc/_build/html/* ./
git add .
git commit -s -m "update rendered pungi docs"
git push origin master
popd
rm -rf /tmp/pungi/ /tmp/pungi-doc/