update build release
This commit is contained in:
parent
29ef0370d2
commit
cd6cc79f8a
1 changed files with 2 additions and 2 deletions
|
@ -30,11 +30,11 @@ echo "Update version and date in the file \"version.php\""
|
|||
for i in `find ./"$version" -type f -name '*.*'`; do
|
||||
encoding=`file -b --mime-encoding "$i"`
|
||||
if [ "$encoding" != "iso-8859-1" ] && [ "$encoding" != "binary" ]; then
|
||||
iconv -f $encoding -t "cp1251" $i >> $i.cp1251
|
||||
iconv -c -f $encoding -t "cp1251" $i >> $i.cp1251
|
||||
mv $i.cp1251 $i
|
||||
fi
|
||||
done
|
||||
echo "Encoding the file has changed"
|
||||
|
||||
tar -czf "$version.tar.gz" "$version"
|
||||
tar -czf $version.tar.gz $version
|
||||
echo "Update has been successfully packaged"
|
||||
|
|
Loading…
Add table
Reference in a new issue