makefile for package
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,8 +1,8 @@
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
build_root=`pwd`
|
||||
project=ems
|
||||
|
||||
# 文件路径
|
||||
vfile="emsVersion"
|
||||
|
||||
@@ -19,13 +19,15 @@ platform=ub22
|
||||
echo "Version: $version"
|
||||
echo "Release Date: $current_date"
|
||||
|
||||
build_root=./build
|
||||
build_dir=$(build_root)/build
|
||||
release_dir=$(build_root)/release
|
||||
|
||||
package_name=$(project)-$(version)-$(platform)
|
||||
package_dir=$(package_name)
|
||||
build_dir=$(build_root)/$(package_name)
|
||||
svc_root=../svc.ems
|
||||
package_path=$(build_dir)/$(package_name)
|
||||
svc_root=$(build_root)/../svc.ems
|
||||
svc_bin=$(svc_root)/bin
|
||||
web_root=../web.ems
|
||||
web_root=$(build_root)/../web.ems
|
||||
package_file=$(package_name).tgz
|
||||
|
||||
package:
|
||||
@@ -43,3 +45,4 @@ package:
|
||||
cp -rf $(web_root)/* $(build_dir)/web
|
||||
cd $(build_root)
|
||||
tar cvfz $(package_file) $(package_dir)
|
||||
mv -f $(package_file) $(release_dir)
|
||||
Reference in New Issue
Block a user