blob: ae82131d8999aa60284b43b3a1488dfb9353c5a5 (
plain)
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
|
. ./config.rc
redo all
# Install executables.
mkdir -p "${DESTDIR}${BINDIR}"
getbin | while read -r file; do
cp "$file" "${DESTDIR}${BINDIR}/${file##*/}"
chmod 755 "${DESTDIR}${BINDIR}/${file##*/}"
done
# Install manual pages.
mkdir -p "${DESTDIR}${MAN1}"
for man in man/*.1; do
cp "$man" "${DESTDIR}${MAN1}/${man##*/}"
chmod 644 "${DESTDIR}${MAN1}/${man##*/}"
done
# Install the documentation info page.
# We don't want to bother if the info page wasn't created, just exit without an
# error.
[ -f docs/cpt.info ] || exit 0
mkdir -p "${DESTDIR}${INFODIR}"
cp docs/cpt.info "${DESTDIR}${INFODIR}/cpt.info"
chmod 644 "${DESTDIR}${INFODIR}/cpt.info"
|