@@ -19,6 +19,7 @@ GPG_OPTS="--quiet --yes --compress-algo=none --no-encrypt-to"
1919GPG=" gpg"
2020SHREDCMD=" rm"
2121EDITOR=" ${EDITOR:- vi} "
22+ PAGER=" ${PAGER:- more} "
2223# SHREDCMD="shred"
2324
2425#
@@ -521,6 +522,41 @@ cmd_newkey () {
521522 sed -i s/^KEY.* $/KEY\\ t${mynewkey} / ${CONFIGFILE}
522523}
523524
525+ cmd_licence () {
526+ ${PAGER} << EOF
527+ BSD 3-Clause License
528+
529+ Copyright (c) 2021, Standard-Unix-Notes
530+ All rights reserved.
531+
532+ Redistribution and use in source and binary forms, with or without
533+ modification, are permitted provided that the following conditions are met:
534+
535+ 1. Redistributions of source code must retain the above copyright notice, this
536+ list of conditions and the following disclaimer.
537+
538+ 2. Redistributions in binary form must reproduce the above copyright notice,
539+ this list of conditions and the following disclaimer in the documentation
540+ and/or other materials provided with the distribution.
541+
542+ 3. Neither the name of the copyright holder nor the names of its
543+ contributors may be used to endorse or promote products derived from
544+ this software without specific prior written permission.
545+
546+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
547+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
548+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
549+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
550+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
551+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
552+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
553+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
554+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
555+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
556+
557+ EOF
558+ }
559+
524560
525561# ########################
526562# #
@@ -534,6 +570,7 @@ COMMAND="$1"
534570case " $1 " in
535571 init) shift ; cmd_init " $@ " ;;
536572 config) shift ; cmd_config " $@ " ;;
573+ licence|license) shift ; cmd_licence " $@ " ;;
537574 default) shift ; cmd_default " $@ " ;;
538575 use) shift ; cmd_use " $@ " ;;
539576 newkey) shift ; cmd_newkey " $@ " ;;
0 commit comments