50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
; 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
|