Subversion Repositories SvarDOS

Compare Revisions

No changes between revisions

Ignore whitespace Rev 635 → Rev 636

/cron.sh
0,0 → 1,26
#!/bin/sh
#
# this script looks for the presence of /tmp/svardos_repo_changed.flag file
# and rebuilds the packages index if it exists (then deletes the flag).
#
# it is supposed to be called periodically from within a cron job.
#
# the /tmp/svardos_repo_changed.flag file is expected to be created by an
# svn post-commit hook whenever something in the svn repo changes.
 
 
FLAGFILE="/tmp/svardos_repo_changed.flag"
SVNREPODIR="/srv/svardos"
 
# if flag does not exist, exit
if [ ! -f "$FLAGFILE" ] ; then
exit 0
fi
 
 
# repo changed! delete the flag file, refresh the local copy of the repo and rebuild packages index
rm "$FLAGFILE"
svn up "$SVNREPODIR"
php "$SVNREPODIR/buildidx/buildidx.php" ""$SVNREPODIR/packages/"
 
exit 0
Property changes:
Added: svn:executable
+*
\ No newline at end of property