]> git.decadent.org.uk Git - dak.git/blobdiff - cron.unchecked-non-US
sync
[dak.git] / cron.unchecked-non-US
diff --git a/cron.unchecked-non-US b/cron.unchecked-non-US
new file mode 100644 (file)
index 0000000..117b814
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+set -e
+export SCRIPTVARS=/org/non-us.debian.org/katie/vars-non-US
+. $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": "$changes"  >> $report
+  jennifer -a $changes >> $report
+  echo "--" >> $report
+else
+  echo "$timestamp": Nothing to do >> $report
+fi;