cron.unchecked 510 字节
Newer Older
J
James Troup 已提交
1 2 3
#! /bin/sh

set -e
4
export SCRIPTVARS=/org/security.debian.org/dak/config/debian-security/vars
J
James Troup 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18
. $SCRIPTVARS

cd $unchecked

changes=$(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs)
report=$queuedir/REPORT
timestamp=$(date "+%Y-%m-%d %H:%M")

if [ -z "$changes" ]; then
  echo "$timestamp": Nothing to do >> $report
  exit 0;
fi;

echo "$timestamp": "$changes"  >> $report
19
dak process-unchecked -a $changes >> $report
J
James Troup 已提交
20 21
echo "--" >> $report

22
sh $masterdir/cron.buildd-security