/usr/share/doc/umegaya/example-push-metadata is in umegaya 1.0.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #!/bin/sh -e
#
# This is the script used on blends.debian.net to push the collected files to
# the packages-metadata directory of the Subversion repositry 'collab-qa'.
#
# The repostitory has been checked out with the following command.
#
# SVN_SSH="ssh -i $HOME/.ssh/alioth-svn-commit_rsa" svn checkout --force svn+ssh://svn.debian.org/svn/collab-qa/packages-metadata/
#
# It is ugly and has many shortcomings. All the find commands should
# disappear.
#
# The SSH key is of course restricted to only run svnserve.
POOL=/var/lib/umegaya/packages-metadata/
STAMP=${TMPDIR-/tmp}/umegaya-timestamp
rm -f $STAMP
touch $STAMP
find $POOL -empty | grep -v 'svn/' | xargs -L1 rm -f
find $POOL -name '*control' | xargs grep -l DOCT | xargs rm -f
find $POOL -name '*copyright' | xargs grep -l DOCT | xargs rm -f
find $POOL -name '*upstream' | xargs grep -l DOCT | xargs rm -f
find $POOL -name '*upstream' | xargs grep -l '^<html' | xargs rm -f
find $POOL -name '*control' | xargs grep -l '^<html' | xargs rm -f
find $POOL -name '*copyright' | xargs grep -l '^<html' | xargs rm -f
find $POOL -name '*control' | xargs grep -l '^500 Ca'| xargs rm -f
find $POOL -name '*copyright' | xargs grep -l '^500 Ca'| xargs rm -f
find $POOL ! -newer $STAMP | grep -v '././.svn' | grep '[mlt]$' | xargs svn add --force
rm $STAMP
SVN_SSH="ssh -i $HOME/.ssh/alioth-svn-commit_rsa" svn commit $POOL -m 'Daily automatic umegaya push' --quiet
|