1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00
This commit is contained in:
Akolzin Dmitry 2020-03-18 09:21:46 +03:00
parent cd6cc79f8a
commit 25b777e9fe
3 changed files with 3 additions and 1 deletions

View file

@ -48,6 +48,7 @@ build_release_dir: build_diff_file
build_diff_file:
@git diff --name-status $(LAST_TAG) HEAD > $(ROOT_DIR)/release/diff
@cat $(ROOT_DIR)/release/diff
cleanup:
@rm $(ROOT_DIR)/release/$(VERSION)

View file

@ -30,7 +30,7 @@ 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 -c -f $encoding -t "cp1251" $i >> $i.cp1251
iconv -f $encoding -t "cp1251" $i >> $i.cp1251
mv $i.cp1251 $i
fi
done

View file

@ -27,6 +27,7 @@ while (($buffer = fgets($handle)) !== false) {
$file = explode("\t", trim($buffer));
$modifiedFile = new ModifiedFile($file[1], $file[0]{0});
$modifiedFiles[] = $modifiedFile;
print(var_export($modifiedFiles, true));
}
$builder = new ReleaseBuilder($modifiedFiles, $arModuleVersion['VERSION']);