[MPlayer-cvslog] r30835 - trunk/DOCS/tech/mirrors/update_mplayer_rsync

diego subversion at mplayerhq.hu
Thu Mar 4 16:55:35 CET 2010


Author: diego
Date: Thu Mar  4 16:55:35 2010
New Revision: 30835

Log:
Use $() syntax instead of backticks, it is easier to nest.

Modified:
   trunk/DOCS/tech/mirrors/update_mplayer_rsync

Modified: trunk/DOCS/tech/mirrors/update_mplayer_rsync
==============================================================================
--- trunk/DOCS/tech/mirrors/update_mplayer_rsync	Thu Mar  4 16:53:56 2010	(r30834)
+++ trunk/DOCS/tech/mirrors/update_mplayer_rsync	Thu Mar  4 16:55:35 2010	(r30835)
@@ -10,7 +10,7 @@ MAILADR=<report_mail_to_adr>
 #TMPDIR = /tmp
 #export TMPDIR
 
-TMPFILE=`mktemp -t mplayer.XXXXXXXXXXX`
+TMPFILE=$(mktemp -t mplayer.XXXXXXXXXXX)
 
 # Check to see if another sync is in progress
 if lockfile -! -l 43200 -r 0 "$LOCK"; then
@@ -30,7 +30,7 @@ rsync -pxlrHtWv --delete --delete-after 
       --exclude '/old_stuff' --exclude '/tests' rsync.mplayerhq.hu::ftp/ \
       MPlayer  >> $TMPFILE 2>&1
 
-x=`wc -l $TMPFILE | awk '{print $1}'`
+x=$(wc -l $TMPFILE | awk '{print $1}')
 if [ "$x" -ne "10" ]
 then
   mailx -s "MPlayer mirror" $MAILADR < $TMPFILE


More information about the MPlayer-cvslog mailing list