Mercurial > mplayer.hg
view DOCS/tech/mirrors/update_mplayer_rsync @ 24214:98e7c165d299
warning fixes:
realcodecs/28_8.c: In function 'RAInitDecoder':
realcodecs/28_8.c:238: warning: unused variable 'temp2'
realcodecs/28_8.c:237: warning: unused variable 'temp'
realcodecs/28_8.c: In function 'RASetFlavor':
realcodecs/28_8.c:273: warning: unused variable 'property'
realcodecs/28_8.c:272: warning: unused variable 'flavor'
realcodecs/28_8.c:272: warning: unused variable 'numflavors'
realcodecs/28_8.c:271: warning: unused variable 'result1'
realcodecs/28_8.c:271: warning: unused variable 'numprop'
author | diego |
---|---|
date | Mon, 27 Aug 2007 10:56:48 +0000 |
parents | daccad6cb91d |
children | 32725ca88fed |
line wrap: on
line source
#!/usr/bin/env bash # MPlayer mirroring script # $Id$ PATH=<set_path_if_necessary> LOCK=<path_to_lockfile> MIRROR_ROOT=<path_to_mirror_root> MAILADR=<report_mail_to_adr> #TMPDIR = /tmp #export TMPDIR TMPFILE=`mktemp -t mplayer.XXXXXXXXXXX` # Check to see if another sync is in progress if lockfile -! -l 43200 -r 0 "$LOCK"; then echo Unable to start mirroring MPlayer, lock file exists. exit 1 fi trap "rm -f $LOCK > /dev/null 2>&1" exit cd $MIRROR_ROOT echo "************ rsyncing homepage ************" >> $TMPFILE rsync -pxlrHtWv --delete --delete-after rsync.mplayerhq.hu::homepage/ \ homepage >> $TMPFILE 2>&1 echo "************ rsyncing MPlayer ************" >> $TMPFILE rsync -pxlrHtWv --delete --delete-after --exclude '/benchmark' \ --exclude '/old_stuff' --exclude '/tests' rsync.mplayerhq.hu::ftp/ \ MPlayer >> $TMPFILE 2>&1 x=`wc -l $TMPFILE | awk '{print $1}'` if [ "$x" -ne "10" ] then mailx -s "MPlayer mirror" $MAILADR < $TMPFILE fi rm -f $TMPFILE