make sure directory for calendar files exists before installing them

This commit is contained in:
cgd 1993-04-09 10:26:42 +00:00
parent 303867a1bf
commit dc9f23f104
1 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,14 @@
PROG= calendar
beforeinstall:
@if [ ! -d ${DESTDIR}/usr/share/calendar ]; then \
/bin/rm -f ${DESTDIR}/usr/share/calendar ; \
mkdir -p ${DESTDIR}/usr/share/calendar ; \
chown root.wheel ${DESTDIR}/usr/share/calendar ; \
chmod 755 ${DESTDIR}/usr/share/calendar ; \
else \
true ; \
fi
install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/calendars/calendar.* ${DESTDIR}/usr/share/calendar