blob: 7db8cdc6a5d8d34a46452b5b1610e7b41f7b5c90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh -e
#
# Install cron scripts into the appropriate places.
PATH=debian:$PATH:/usr/lib/debhelper
source dh_lib
for PACKAGE in $DH_DOPACKAGES; do
TMP=`tmpdir $PACKAGE`
EXT=`pkgext $PACKAGE`
for type in daily weekly monthly; do
if [ -e debian/${EXT}cron.$type ]; then
if [ ! -d debian/$TMP/etc/cron.$type ]; then
doit "install -o root -g root -d debian/$TMP/etc/cron.$type"
fi
doit "install debian/${EXT}cron.$type debian/$TMP/etc/cron.$type/$PACKAGE"
fi
done
done
|