#!/bin/bash
. /home/modules.perl6.org/perl5/perlbrew/etc/bashrc
echo 'Starting module update'
date
cd ~/modules.perl6.org/
git pull -q -n
DO_REBUILD=0
if [[ `git log -1 --oneline` =~ '[REBUILD]' ]]; then
    DO_REBUILD=1
fi
log_file=$(mktemp);
FULL_REBUILD=$DO_REBUILD perl bin/build-project-list.pl --restart-app > $log_file 2>&1 && cp $log_file public/update.log
rm $log_file;

Put updater bash script under version control
Put updater bash script under version control
