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 17:55:55 +03:00
parent c8d653b994
commit 3333b2b2c4
2 changed files with 5 additions and 9 deletions

View file

@ -41,7 +41,7 @@ create_db:
mysqladmin create $(DB_BITRIX_NAME) --user=$(DB_BITRIX_LOGIN) --password=$(DB_BITRIX_PASS)
build_release: build_release_dir
bin/build $(ROOT_DIR)/release/$(VERSION)
bash bin/build $(VERSION) $(ROOT_DIR)/release/
build_release_dir: build_diff_file
php bin/build-release

View file

@ -2,6 +2,10 @@
# $1 -- folder name to pack;
version=$1
dir=${2-$PWD}
cd $dir
date=`date +"%Y-%m-%d %H:%M:%S"`
if [ ! -d "$version/install" ]; then
@ -23,14 +27,6 @@ echo "
" > "./$version/install/version.php"
echo "Update version and date in the file \"version.php\""
if [ ! -f "$version/description.ru" ] || [ -s "$version/description.ru" ]; then
echo -n "Create Description? (y/n) "
read report
if [ "$report" = "y" ] || [ "$report" = "Y" ]; then
vim "$version/description.ru"
fi
fi
for i in `find ./"$version" -type f -name '*.*'`; do
encoding=`file -b --mime-encoding "$i"`
if [ "$encoding" != "iso-8859-1" ] && [ "$encoding" != "binary" ]; then