template files

This commit is contained in:
2026-01-11 19:29:59 -05:00
parent 15270f6938
commit 1be39bd69f
5 changed files with 251 additions and 0 deletions

49
t/default/sh.stpl Normal file
View File

@@ -0,0 +1,49 @@
; SH file template
;
;
; This is the default SH file template for the yait project init tool. This file
; is auto-generated on install and can be modified to your hearts content. An
; original copy can be found at /etc/yait/
;
#! /bin/sh
# {{DESCRIPTION}}
scriptversion="1"
#
#
# Copyright (C) {{YEAR}} {{AUTHOR}}
#
#
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
me=$0
version="$me v$scriptversion
Copyright (C) 2025-2026 vx-clutch.
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law."
usage="\
Usage: $me [OPTION]... <version> <dir>
{{DESCRIPTION}}
Options:
--help print this help and exit
--version output version information
"
while [ $# -gt 0 ]; do
case $1 in
--help) echo "$usage"; exit 0 ;;
--version) echo "$version"; exit 0 ;;
-*) echo "$me: Unknown option '$1'." >&2; exit 1 ;;
*) break ;;
esac
done