#!/bin/bash
# license - software license support
set -e
lib_load 'core/license-parts'
license_check_func() {
local name="${FUNCNAME[1]}_print"
is_function "$name" || error "$name: license function not found"
}
license_blurb() {
license_check_func
local package_year=${package_build_date%%-*}
echo "Copyright (C) 2016-$package_year $package_author"
license_blurb_print
echo "Run '$script_name license warranty' for warranty details."
echo "Run '$script_name license full' to read the full license."
}
license_warranty() {
license_check_func
license_warranty_print
}
license_full() {
license_check_func
local tmp=$(cmd_tempfile)
license_full_print >$tmp
${PAGER:-less} "$tmp"
return
}
Generated on Tue Apr 25 21:20:11 PDT 2017 by mcsh i7 v0.18.0.