yait

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 122ce49d23ff9c790219ac73829334e1ac0b3164
parent 1f6130c7a513555fe25e0e254579b7f7920bfe16
Author: vx-clutch <[email protected]>
Date:   Thu, 23 Oct 2025 09:36:28 -0400

save

Diffstat:
Abuild-aux/TODO | 8++++++++
Abuild-aux/gendoc.sh | 47+++++++++++++++++++++++++++++++++++++++++++++++
Abuild-aux/header.html | 5+++++
3 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/build-aux/TODO b/build-aux/TODO @@ -0,0 +1,8 @@ +GCK yait - TODO + +Todo: + + * Use the /*: something()@does something :*/ syntax for detecting entries + * Output html + +end of file TODO diff --git a/build-aux/gendoc.sh b/build-aux/gendoc.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +# Usage: $0 [options]... + +prog_name=$(basename $0) +tool_version="beta" +year=2025 + +fatal() { + echo "fatal: $*" >&2 + exit 1 +} + +run() { + "$@" || fatal "could not run: $*" +} + +print_help() { + cat <<EOF +Usage: $prog_name [options]... + + --help print this help and exit. + --version print version information. +EOF +} + +print_version() { + cat <<EOF +$prog_name $tool_version $(git rev-list --count --all 2>/dev/null || echo 0) +Copyright (C) $year vx-clutch. +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. +EOF +} + +header=$(cat <<EOF + +EOF) + +while [ $# -gt 0 ]; do + case "$1" in + --help) print_help; exit 0 ;; + --version) print_version; exit 0 ;; + *) fatal "Not implemented yet" ;; + esac + shift +done diff --git a/build-aux/header.html b/build-aux/header.html @@ -0,0 +1,5 @@ +<!DOCTYPE html> +<html> +<head> +<title>DOCUMENT</title> +</head>