提交 01dc9b1e 编写于 作者: H huili

[NONE]

上级 1a718fbc
...@@ -129,34 +129,29 @@ ${csudo} make ...@@ -129,34 +129,29 @@ ${csudo} make
cd ${curr_dir} cd ${curr_dir}
# 3. judge the operating system type, then Call the corresponding script for packaging # 3. judge the operating system type, then Call the corresponding script for packaging
osinfo=$(awk -F= '/^NAME/{print $2}' /etc/os-release) #osinfo=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
#osinfo=$(cat /etc/os-release | grep "NAME" | cut -d '"' -f2) #osinfo=$(cat /etc/os-release | grep "NAME" | cut -d '"' -f2)
#echo "osinfo: ${osinfo}" #echo "osinfo: ${osinfo}"
if echo $osinfo | grep -qwi "ubuntu" ; then echo "do deb package for the ubuntu system"
echo "this is ubuntu system" output_dir="${top_dir}/debs"
output_dir="${top_dir}/debs" if [ -d ${output_dir} ]; then
if [ -d ${output_dir} ]; then ${csudo} rm -rf ${output_dir}
${csudo} rm -rf ${output_dir} fi
fi ${csudo} mkdir -p ${output_dir}
${csudo} mkdir -p ${output_dir} cd ${script_dir}/deb
cd ${script_dir}/deb ${csudo} ./makedeb.sh ${compile_dir} ${output_dir} ${version}
${csudo} ./makedeb.sh ${compile_dir} ${output_dir} ${version}
echo "do rpms package for the centos system"
elif echo $osinfo | grep -qwi "centos" ; then output_dir="${top_dir}/rpms"
echo "this is centos system" if [ -d ${output_dir} ]; then
output_dir="${top_dir}/rpms" ${csudo} rm -rf ${output_dir}
if [ -d ${output_dir} ]; then
${csudo} rm -rf ${output_dir}
fi
${csudo} mkdir -p ${output_dir}
cd ${script_dir}/rpm
${csudo} ./makerpm.sh ${compile_dir} ${output_dir} ${version}
else
echo "this is other linux system"
fi fi
${csudo} mkdir -p ${output_dir}
cd ${script_dir}/rpm
${csudo} ./makerpm.sh ${compile_dir} ${output_dir} ${version}
echo "do tar.gz package for all systems"
cd ${script_dir}/tools cd ${script_dir}/tools
${csudo} ./makepkg.sh ${compile_dir} ${version} "${build_time}" ${csudo} ./makepkg.sh ${compile_dir} ${version} "${build_time}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册