]> git.donarmstrong.com Git - debhelper.git/blob - dh_installcron
r55: Initial Import
[debhelper.git] / dh_installcron
1 #!/bin/sh -e
2 #
3 # Install cron scripts into the appropriate places.
4
5 PATH=debian:$PATH:/usr/lib/debhelper
6 . dh_lib
7
8 for PACKAGE in $DH_DOPACKAGES; do
9         TMP=`tmpdir $PACKAGE`
10
11         for type in daily weekly monthly; do
12                 cron=`pkgfile $PACKAGE cron.$type`
13                 if [ "$cron" ]; then
14                         if [ ! -d $TMP/etc/cron.$type ]; then
15                                 doit "install -o root -g root -d $TMP/etc/cron.$type"
16                         fi
17                         doit "install "$cron" $TMP/etc/cron.$type/$PACKAGE"
18                 fi
19         done
20 done