]> git.deb.at Git - deb/packages.git/blobdiff - bin/daily
Comment clean-up: Remove $Id$, fix FSF address, copyright years
[deb/packages.git] / bin / daily
index 0d5afb414557cf7a89b9fa989070183b8ddb27d7..2c54efef2e15c2f03b151d9b10d14e216bb7fbd0 100755 (executable)
--- a/bin/daily
+++ b/bin/daily
 #
 #   You should have received a copy of the GNU General Public License
 #   along with this program; if not, write to the Free Software
-#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 # Should run after the mirror pulse.  The mirror tends to finish by
 # the ctime of rsync.log.* in ~archvsync.
 
-topdir=/org/packages.debian.org
+source config.sh
 files=$topdir/files
 logs=$files/logs
 log=$logs/cron.log
@@ -37,9 +37,17 @@ date > $log
 if lockfile -600 -r5 "${files}/cron.lock" >> $log 2>&1
 then
     run-parts --verbose $topdir/cron.d >> $log 2>&1
+    rm -f "${files}/cron.lock"
 else
-    echo "couldn't aquire lock file in due time" >> $log
+    echo "couldn't aquire cron lock file in due time" >> $log
 fi
-rm -f "${files}/cron.lock"
+date >> $log
 
+if lockfile -600 -r5 "${files}/changelogs.lock" >> $log 2>&1
+then
+    $topdir/bin/extract_changelogs >> $log 2>&1
+    rm -f "${files}/changelogs.lock"
+else
+    echo "couldn't aquire changelogs lock file in due time" >> $log
+fi
 date >> $log