diff --git a/rpms/build/common/usage.sh b/rpms/build/common/usage.sh index 5eedad02d7..b00b663769 100644 --- a/rpms/build/common/usage.sh +++ b/rpms/build/common/usage.sh @@ -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." diff --git a/rpms/build/x86_64/build.sh b/rpms/build/x86_64/build.sh index 86afc146ea..46818aad16 100644 --- a/rpms/build/x86_64/build.sh +++ b/rpms/build/x86_64/build.sh @@ -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