1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

update build release

This commit is contained in:
Akolzin Dmitry 2020-03-17 18:28:12 +03:00
parent 29ef0370d2
commit cd6cc79f8a

View file

@ -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"