Omaha #3215 - Add option for RPM build,
Change-Id: Ic3a50f9a493c9cd7b92ac99aeb026d3d991f69a5 Former-commit-id: 615c83cb701e3c8ddf7cbcc1c1fb735711771d3b
This commit is contained in:
parent
132bd3948d
commit
a2e157ed35
2 changed files with 18 additions and 0 deletions
|
@ -11,6 +11,7 @@ function usage()
|
|||
echo " -edex only build the EDEX rpms."
|
||||
echo " -qpid build only the QPID rpms."
|
||||
echo " -ldm build the awips2-ldm rpm; requires root privileges."
|
||||
echo " -dev call functions directly
|
||||
echo " -package create a yum repository tar file with the rpms that were just built."
|
||||
echo " --help display this message and exit."
|
||||
|
||||
|
|
|
@ -533,5 +533,22 @@ if [ "${1}" = "-package" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ "${1}" = "-dev" ]; then
|
||||
|
||||
if [ ! $# -eq 2 ]; then
|
||||
usage
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo -e "\n*** Executing $2 ***"
|
||||
$2
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
echo -e "*** $2 Complete ***\n"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
usage
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue