update build release
This commit is contained in:
parent
c8d653b994
commit
3333b2b2c4
2 changed files with 5 additions and 9 deletions
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
12
bin/build
12
bin/build
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue