-
Notifications
You must be signed in to change notification settings - Fork 4
/
doc.sh
executable file
·48 lines (38 loc) · 1010 Bytes
/
doc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
. ./common.sh
docmatrix() {
cat >> "${TMPCOPYING}" << __EOF__
- ${NAME}-${VERSION}
__EOF__
}
docconfig() {
local title="${DESCRIPTION} (${NAME})"
local dash="-------------------------------------------------------------------------------------------------"
cat >> "${TMPCOPYING}" << __EOF__
${title}
$(expr substr "${dash}" 1 ${#title})
Site: ${HOME}
License: ${LICENSE}${COPYRIGHT:+
Copyright: ${COPYRIGHT}${COPYRIGHT_NOTE}}
Version: ${VERSION}
Files:
__EOF__
}
docfile() {
cat >> "${TMPCOPYING}" << __EOF__
"${artifact}"
__EOF__
}
COPYING="$1"
[ -n "${COPYING}" ] || die "Invalid usage"
TMPCOPYING="${COPYING}.tmp"
rm -f "${COPYING}" "${TMPCOPYING}"
cat > "${TMPCOPYING}" << __EOF__
oVirt 3rd party dependencies
============================
ovirt-dependencies package is a bundle of 3rd party dependencies for oVirt.
Bundle contains the following components:
__EOF__
common_iterate docmatrix common_void
common_iterate docconfig docfile
mv "${TMPCOPYING}" "${COPYING}"