rpm安装包制作脚本(仅限内部适用)

#!/bin/bash
#Author:Haodong Zhang
#Date:06/30/2020
#Function:快速制作SMJ安装包(内部适用)

clear
function cecho {
        echo -e "\033[$1m$2\033[0m"
#fonts color:31-red;32-green;36-deepgreen;34-blue;
}


##################################脚本说明##############################################
function explain {
[ -d /root/rpmbuild/myscript ] || mkdir /root/rpmbuild/myscript
cat <$PWD/SPECS/$softname.spec<

你可能感兴趣的:(SHELL)