8520.3.1
by Celso Providelo
Splitting PPA cron jobs. |
1 |
#!/bin/bash
|
8687.15.7
by Karl Fogel
Add the copyright header block to more files. |
2 |
#
|
3 |
# Copyright 2009 Canonical Ltd. This software is licensed under the
|
|
4 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
5 |
||
8520.3.1
by Celso Providelo
Splitting PPA cron jobs. |
6 |
set -x
|
7 |
||
8 |
# Try to acquire the lockfile forever. It has to run once a day,
|
|
9 |
# no matter what.
|
|
10 |
LOCKFILEOPTIONS="-r-1" |
|
11 |
||
12 |
# Variables, lockfile and exit handler for PPA scripts.
|
|
13 |
source `dirname $0`/cron.base-ppa |
|
14 |
||
15 |
# Clear out empty and thus redundant dirs.
|
|
16 |
find $PPAROOT -type d -empty | xargs -r rmdir |
|
17 |
find $P3AROOT -type d -empty | xargs -r rmdir |