Omaha #3215 - Add option for RPM build,

Change-Id: Ic3a50f9a493c9cd7b92ac99aeb026d3d991f69a5

Former-commit-id: a2e157ed35 [formerly 615c83cb701e3c8ddf7cbcc1c1fb735711771d3b]
Former-commit-id: 265a455ca1
This commit is contained in:
Greg Armendariz 2014-05-27 13:00:36 -05:00
parent f84333e1ce
commit 0806135d2e
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 " -edex only build the EDEX rpms."
echo " -qpid build only the QPID rpms." echo " -qpid build only the QPID rpms."
echo " -ldm build the awips2-ldm rpm; requires root privileges." 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 " -package create a yum repository tar file with the rpms that were just built."
echo " --help display this message and exit." echo " --help display this message and exit."

View file

@ -533,5 +533,22 @@ if [ "${1}" = "-package" ]; then
exit 0 exit 0
fi 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 usage
exit 0 exit 0