czf4bfu |
Subversion Repositories: |
Rev 15 | Rev 16 | |
---|---|---|
Line 60... | Line 60... | |
echo "*** $TMPSVR NEnalezen v servers.list a byl zalohovan ***" |
echo "*** $TMPSVR NEnalezen v servers.list a byl zalohovan ***" | |
fi |
fi | |
fi |
fi | |
done |
done | |
|
| |
### mrkneme se po externich ikonkach | ||
| ||
OLD_IFS=$IFS; IFS=$'\n' | ||
GLOBALS=`ls global-*.txt | sed 's/^global-//' | sed 's/\.txt$//'` | ||
for TMPSVR in $GLOBALS | ||
do | ||
for ICONS in `grep 'ICON:' global-$TMPSVR.txt`; do | ||
ICONURL=`echo "$ICONS" | sed -n "s/^ICON: \([[:space:]]+\)\?\([^[:space:]#].*\)/\2/p"` | ||
ICONNAME=`echo "$ICONURL" | sed -n "s/^\(.*\)\/\([^[\/].*\)$/\2/p"` | ||
if [ "$ICONNAME" != "" ]; then | ||
if wget -T 3 -t 3 -N -U CZF4BFU $ICONURL -O $DATADIR/cache/"$TMPSVR"_"$ICONNAME" | ||
then | ||
echo "***** podarilo se stahnout ikonku $ICONNAME ze serveru $TMPSVR *****" | ||
else | ||
PRESKOC=0 | ||
for SERVER in `cat servers.list` | ||
do | ||
if [ $PRESKOC -lt 1 ]; then | ||
if wget -T 3 -t 3 -N -U CZF4BFU http://$SERVER/czf4bfu/cache/"$SERVER"_"$ICONNAME" -O $DATADIR/cache/"$SERVER"_"$ICONNAME" | ||
then | ||
echo "***** podarilo se stahnout ikonku $ICONNAME ze serveru $SERVER *****" | ||
PRESKOC=1 | ||
fi | ||
fi | ||
done | ||
fi | ||
fi | ||
done | ||
done | ||
IFS=$OLD_IFS |