site

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.beauhilton.com/site.git
Log | Files | Refs

commit 0ccb0e0af62353b56d763c69401672ff77850f46
parent f55e549c2e9e35a66a2d4c8c69a8cfc032aafa70
Author: Beau <cbeauhilton@gmail.com>
Date:   Thu,  1 Dec 2022 14:15:22 -0600

update post-receive

Diffstat:
Aassets/post-receive | 28++++++++++++++++++++++++++++
Aassets/post-receive-soupault | 28++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/assets/post-receive b/assets/post-receive @@ -0,0 +1,28 @@ +#!/bin/sh -e + +title='Beau Hilton' +url='https://beauhilton.com' + +dst="/var/www/htdocs/www.beauhilton.com" +raw="$dst/raw" +src="$dst/src" + +if test -z "${PWD##*.git}" + then repo="$PWD" + else repo="$PWD/.git" +fi + +rm -rf "${dst:?}/.files" +rm -rf "$raw" +rm -rf "$src:?" + +mkdir -p "$raw" +echo "${title}" > "$repo/owner" +git clone "$repo" "$raw" +(cd "$raw/.git" && git update-server-info) + +"$HOME/bin/ssg6" "$raw" "$dst" "$title" "$url" > /dev/null + +mkdir -p "$src" +(cd "$src" && stagit "$repo") +cp -f "$src/log.html" "$src/index.html" diff --git a/assets/post-receive-soupault b/assets/post-receive-soupault @@ -0,0 +1,28 @@ +#!/bin/sh -e + +title='Beau Hilton' +url='https://beauhilton.com' + +dst="/var/www/htdocs/www.beauhilton.com" +raw="$dst/raw" +src="$dst/src" + +if test -z "${PWD##*.git}" + then repo="$PWD" + else repo="$PWD/.git" +fi + +rm -rf "${dst:?}/.files" +rm -rf "$raw" +rm -rf "$src:?" + +mkdir -p "$raw" +echo "${title}" > "$repo/owner" +git clone "$repo" "$raw" +(cd "$raw/.git" && git update-server-info) + +cp -r "$raw/build" "$dst" + +mkdir -p "$src" +(cd "$src" && stagit "$repo") +cp -f "$src/log.html" "$src/index.html"