...
This commit is contained in:
15
Makefile
15
Makefile
@@ -24,24 +24,23 @@ vfile=$(extra_dir)/emsVersion
|
||||
version=$(shell grep "Version:" $(vfile) | awk -F' ' '{print $$2}')
|
||||
|
||||
print-version:
|
||||
# 输出版本信息和更新后的日期
|
||||
@echo "Version: $(version)"
|
||||
@echo "Release Date: $(current_date)"
|
||||
|
||||
package:
|
||||
@echo "prepare build environment ..."
|
||||
@rm -rf $(package_path)
|
||||
@mkdir -p $(package_path)
|
||||
@echo "cp bin dir to build dir"
|
||||
@echo "copy bin to build directory ..."
|
||||
@cp -rf $(svc_bin) $(package_path)
|
||||
@echo "update release date"
|
||||
@echo "update release date ..."
|
||||
@sed -i "s/Release Date:.*/Release Date: $(current_date)/" $(vfile)
|
||||
@echo "cp extra file to build dir"
|
||||
@echo "copy extra file to build directory ..."
|
||||
@cp -rf $(extra_dir)/* $(package_path)
|
||||
@echo "cp web file to build dir"
|
||||
@echo "copy web file to build directory ..."
|
||||
@mkdir -p $(package_path)/web
|
||||
@cp -rf $(web_root)/* $(package_path)/web
|
||||
# cd $(build_dir)
|
||||
@echo "build package $(package_file)"
|
||||
@echo "build package $(package_file) ..."
|
||||
@tar cvfz $(build_dir)/$(package_file) -C $(build_dir) $(package_name) >/dev/null
|
||||
@echo "move $(package_file) to $(release_dir)"
|
||||
@echo "move $(package_file) to $(release_dir) ..."
|
||||
@mv -f $(build_dir)/$(package_file) $(release_dir)
|
||||
Reference in New Issue
Block a user