diff options
author | zhongjun <zhong.jun@zte.com.cn> | 2017-09-01 16:42:29 +0800 |
---|---|---|
committer | zhongjun <zhong.jun@zte.com.cn> | 2017-09-01 16:42:29 +0800 |
commit | 024127f3a0072d73b52dd7698088415a92c6b9b9 (patch) | |
tree | 47bacc97bf6cc99e672e7ef7f140917b3ddd98c2 | |
parent | a176858f54c14975c0b3d771df11c08cbc8a792d (diff) |
Uniform the variable definition makefile_path.sh
replace all the "${TOOLS_PATH}/setup/bin_temp" statement to
the variable $target_dir
Change-Id: I62b95f1780a7cd5e0c8c4e60a5b0661a2a9937bd
Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
-rwxr-xr-x | code/makefile_patch.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/code/makefile_patch.sh b/code/makefile_patch.sh index a092986d..1893d946 100755 --- a/code/makefile_patch.sh +++ b/code/makefile_patch.sh @@ -25,6 +25,9 @@ cirros_ver="0.3.5" cirros_filename="cirros-${cirros_ver}-x86_64-disk.img" cirros_url=${cirros_server}/${cirros_ver}/${cirros_filename} +target_sub_dir="setup/bin_temp" +target_dir=${TOOLS_PATH}/${target_sub_dir} + function check_or_download_file() { file_path=$1 @@ -79,10 +82,10 @@ check_or_download_file $CACHE_PATH $imageserver/${imagename} ${imageserver}/${im check_or_download_file $CACHE_PATH "http://daisycloud.org/static/files/registry-server.tar" check_or_download_file $CACHE_PATH ${cirros_url} -cp $CACHE_PATH/${isoname} $TOOLS_PATH/setup/bin_temp/ -cp $CACHE_PATH/$imagename $TOOLS_PATH/setup/bin_temp/ -cp $CACHE_PATH/registry-server.tar $TOOLS_PATH/setup/bin_temp/ -cp $CACHE_PATH/${cirros_filename} $TOOLS_PATH/setup/bin_temp/ +cp $CACHE_PATH/${isoname} ${target_dir}/ +cp $CACHE_PATH/$imagename ${target_dir}/ +cp $CACHE_PATH/registry-server.tar ${target_dir}/ +cp $CACHE_PATH/${cirros_filename} ${target_dir}/ -cp $TOOLS_PATH/setup/install_interface_patch.sh $TOOLS_PATH/setup/bin_temp/ -chmod +x $TOOLS_PATH/setup/bin_temp/install_interface_patch.sh +cp $TOOLS_PATH/setup/install_interface_patch.sh ${target_dir}/ +chmod +x ${target_dir}/install_interface_patch.sh |