summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorsiretart <siretart@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-22 20:46:33 +0000
committersiretart <siretart@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-22 20:46:33 +0000
commit329513035ec25a264b8ce66a7faf8961489d9a89 (patch)
tree90963c39bc6b60890f53528a1417d05b29afc19e /TOOLS
parent78f362136da22404f1dd668f178923179f236437 (diff)
downloadmpv-329513035ec25a264b8ce66a7faf8961489d9a89.tar.bz2
mpv-329513035ec25a264b8ce66a7faf8961489d9a89.tar.xz
Part 1 of syncing binary_codecs.sh with Debian
This patch contains no functional changes, only whitespace fixes from Debian. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29220 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/binary_codecs.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/TOOLS/binary_codecs.sh b/TOOLS/binary_codecs.sh
index c4ab61cf4b..db20fb66f4 100755
--- a/TOOLS/binary_codecs.sh
+++ b/TOOLS/binary_codecs.sh
@@ -22,19 +22,19 @@ choosemirror ()
{
cd $PREFDIR
- #if [ ! -r mirrors ] || find mirrors -mtime +20 ; then
+ #if [ ! -r mirrors ] || find mirrors -mtime +20 ; then
echo Downloading mirrors list..
wget -nv -c -N $MYSITE/mirrors || true
#fi
if [ ! -r bestsites ] || [ mirrors -nt bestsites ] || \
- find bestsites -mtime +20 > /dev/null ; then
+ find bestsites -mtime +20 > /dev/null ; then
if which netselect > /dev/null ; then
echo Choosing best mirrors using netselect....
netselect -s 5 $( cat mirrors ) | awk '{print $2}' > bestsites
elif which fping > /dev/null ; then
- fping -C 1 $( sed 's#.*//##;s#/.*##' mirrors ) 2>&1 | \
- egrep -v 'bytes.*loss' | sort -n -k3 | \
- grep -v ': *-' | awk '/:/{print $1}' | head -5 > bestsites
+ fping -C 1 $( sed 's#.*//##;s#/.*##' mirrors ) 2>&1 | \
+ egrep -v 'bytes.*loss' | sort -n -k3 | \
+ grep -v ': *-' | awk '/:/{print $1}' | head -5 > bestsites
else
echo "(If you install 'netselect', it will select the best mirror for you"
echo " you may wish to stop this script and rerun after installation)"
@@ -54,11 +54,11 @@ INSTALL () {
cd $CODECDIR/mplayer_binary_codecs
if [ -r $filename ] ; then
- cp $filename $filename.bak
+ cp $filename $filename.bak
fi
- if [ "$url" = @MAINSITE@ ] ; then
- cat $PREFDIR/bestsites | while read mainsite ; do
+ if [ "$url" = @MAINSITE@ ] ; then
+ cat $PREFDIR/bestsites | while read mainsite ; do
echo Downloading $filename from $mainsite ...
wget -v -c -N $mainsite/$dir/$filename || true
if [ -r "$filename" ] ; then
@@ -69,7 +69,7 @@ INSTALL () {
done
else
wget -v -c -N $url/$dir/$filename || true
- if [ -r "$filename" ] ; then
+ if [ -r "$filename" ] ; then
UNPACK "$filename"
[ -r $filename.bak ] && rm $filename.bak
return 0
@@ -146,9 +146,9 @@ case "$1" in
egrep -v "^[[:space:]]*(#|$)" $PREFDIR/codecs_list | \
while read arch url dir file info ; do
if [ "$dpkgarch" = "$arch" ]; then
- echo Installing $file $info...
- INSTALL "$url" "$dir" "$file"
- n=1
+ echo Installing $file $info...
+ INSTALL "$url" "$dir" "$file"
+ n=1
fi
done
else