Merge "Omaha #3215 - Add option for RPM build," into omaha_14.4.1
Former-commit-id:43f18d2770
[formerly 7b2bd85ea00ab8030f5577b945c6c716e1da6dc4] Former-commit-id:5c5e3605e7
This commit is contained in:
commit
92b83788e4
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