update make package
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user