Merge "Omaha #3215 - Add option for RPM build," into omaha_14.4.1

Former-commit-id: aa9938b51b [formerly 92b83788e4] [formerly 5c5e3605e7] [formerly aa9938b51b [formerly 92b83788e4] [formerly 5c5e3605e7] [formerly 43f18d2770 [formerly 5c5e3605e7 [formerly 7b2bd85ea00ab8030f5577b945c6c716e1da6dc4]]]]
Former-commit-id: 43f18d2770
Former-commit-id: 99ba88d886 [formerly cfa02f4076] [formerly bf50a4b6f9653f5eb339877e31c526dcb0fbddd5 [formerly 38dd19134d]]
Former-commit-id: 85ba17dc0cc71b04ee6c0eaeeee82ffaa79a7704 [formerly a4207cfb7a]
Former-commit-id: f762c13276
This commit is contained in:
Greg Armendariz 2014-05-27 15:08:37 -05:00 committed by Gerrit Code Review
commit 3bf580e8e5
2 changed files with 18 additions and 0 deletions

View file

@ -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."

View file

@ -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