mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 22:11:39 +02:00
eclass/coreos-doc: add helper for including docs
This commit is contained in:
parent
e3cf1b0153
commit
c8cd2621cc
23
sdk_container/src/third_party/coreos-overlay/eclass/coreos-doc.eclass
vendored
Normal file
23
sdk_container/src/third_party/coreos-overlay/eclass/coreos-doc.eclass
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright 2015 CoreOS, Inc.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
# @ECLASS: coreos-doc.eclass
|
||||
# @BLURB: utility function for including documentation
|
||||
|
||||
# @FUNCTION: coreos-dodoc
|
||||
# @USAGE: [-r] <list of docs>
|
||||
coreos-dodoc() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local flags
|
||||
if [[ "${1}" == "-r" ]] ; then
|
||||
flags="-r"
|
||||
shift
|
||||
fi
|
||||
|
||||
[[ "${#}" -lt 1 ]] && die "${0}: at least one file needed"
|
||||
|
||||
insinto "/usr/share/coreos/doc/${P}/"
|
||||
doins $flags $@
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user