#!/usr/bin/env python

import sys, os, string


if len(sys.argv) > 1 and sys.argv[1] == '-n':
    debug = 1
else:
    debug = 0
places= ("/usr/yokel/bin", "/usr/yokel/sbin")

for place in places:
    os.chdir(place)
    cmd = 'su davep -c "svn commit -m \'periodic commit\'"'
    print 'cmd:', cmd
    if not debug:
        rc = os.system(cmd)

sys.exit(0)
