1
0

update make package

This commit is contained in:
2024-10-30 11:14:36 +08:00
parent c659fa38d2
commit 8b4492153c
2 changed files with 81 additions and 6 deletions

View File

@@ -1,10 +1,11 @@
#!/bin/bash
usage() {
echo "Usage: $0 deb|rpm [option]..."
echo "Usage: $0 deb|badeb|rpm [option]..."
echo
echo "Make omc package, option as follow:"
echo " deb|rpm, deb: ubuntu|debian package build by dpkg"
echo " deb|badeb|rpm, deb: ubuntu|debian package build by dpkg"
echo " badeb: BA ubuntu|debian package build by dpkg"
echo " rpm: centos/redhat package, build by rpmbuild"
echo " -r, =build root directory build root directory, default directory is $HOME/omc.git"
echo " -d dump SQL from database"
@@ -18,7 +19,7 @@ new_args=()
be_args=()
# Traverse all parameters
for arg in "$@"; do
if [[ "$arg" == "deb" || "$arg" == "ba-deb" || "$arg" == "rpm" ]]; then
if [[ "$arg" == "deb" || "$arg" == "badeb" || "$arg" == "rpm" ]]; then
pkgtype=$arg
be_args+=("$arg")
else