1234567891011121314151617181920212223242526272829303132333435363738 |
- if [ "$#" -lt 1 ]; then
- echo "请输入主版本好,比如1.1"
- echo "$1"
- exit
- fi
- sysarch=$(dpkg --print-architecture)
- echo "system aarchitecture is "$sysarch
- debname="adciv-"$1"."$(date +%Y%m%d%H%M%S)"-"$sysarch".deb"
- echo $debname
- cd ../../
- cp -r ./dpkgtp/adciv ./deploy
- cp -r ./deploy/app/* ./deploy/adciv/opt/catarc/adc/adciv/
- sed -i "s|VVVVVV|"$1"."$(date +%Y%m%d%H%M%S)"|g" ./deploy/adciv/DEBIAN/control
- sed -i "s|AAAAAA|$sysarch|g" ./deploy/adciv/DEBIAN/control
- cd ./deploy
- dpkg -b adciv ./deb/$debname
- rm -r adciv
- echo " done!"
|