# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/kubectl/kubectl.conf # Copyright (C) 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- rungo=0 makeinstopt= var_append makeopt ' ' 'kubectl gendocs genman genyaml' var_remove GCC_WRAPPER_REMOVE ' ' '-gdwarf*' kubectl_extract() { local taropt_orig="$taropt" mkdir -p "${xsrctar%%.tar*}" taropt="-C ${xsrctar%%.tar*} $taropt_orig" autoextract_tar "$@" taropt="$taropt_orig" } custextract='kubectl_extract' kubectl_docs() { mkdir -p docs/{man/man1,user-guide/kubectl,yaml/kubectl} ./_output/bin/gendocs "docs/user-guide/kubectl/" ./_output/bin/genman "docs/man/man1/" "kubectl" ./_output/bin/genyaml "docs/yaml/kubectl/" } hook_add inmake 5 'kubectl_docs' kubectl_install() { install -Dm 755 _output/bin/kubectl $root$bindir/ install -Dm 644 docs/man/man1/kubectl* -t $root$mandir/man1/ } hook_add postmake 5 'kubectl_install'