mirror of
https://github.com/tstellar/bygfoot.git
synced 2024-12-16 18:29:21 +01:00
Update script updated.
This commit is contained in:
parent
5f69d7b257
commit
67110d91e6
@ -407,16 +407,19 @@ function get_country_files()
|
|||||||
my_wget http://bygfoot.sourceforge.net/revisions/official_names
|
my_wget http://bygfoot.sourceforge.net/revisions/official_names
|
||||||
|
|
||||||
while read -d : oldname && read newname
|
while read -d : oldname && read newname
|
||||||
do
|
do
|
||||||
if [ "$oldname" == "League" ]; then
|
if [ "$oldname" = "League" ]; then
|
||||||
DIRNAME=$(find . -type d -name $newname)
|
DIRNAME=$(find . -type d -name $newname)
|
||||||
my_echo " + Adding official names to $DIRNAME..."
|
if [ ! $DIRNAME = "" ]; then
|
||||||
else
|
my_echo " + Adding official names to $DIRNAME..."
|
||||||
oldname="${oldname## }"
|
fi
|
||||||
newname="${newname%% }"
|
else
|
||||||
sed -i -e "s/>$oldname</>$newname</" $DIRNAME/league*.xml
|
if [ ! $DIRNAME = "" ]; then
|
||||||
fi
|
oldname="${oldname## }"
|
||||||
|
newname="${newname%% }"
|
||||||
|
perl -i -pe "s/>$oldname</>$newname</g" $DIRNAME/league*.xml
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done < official_names
|
done < official_names
|
||||||
|
|
||||||
rm -vf official_names 2>> $log_file | tee -a $log_file
|
rm -vf official_names 2>> $log_file | tee -a $log_file
|
||||||
|
Loading…
Reference in New Issue
Block a user