#!/bin/bash
#
# Copyright (C) 2002-2021  AfterLogic Corp. (www.afterlogic.com)
# Distributed under the terms of the license described in LICENSE
#
. ./functions

parse_command_line $@
if [ $? -gt 0 ]; then
    echo "$INVALID_COMMAND_LINE_MSG" ;
    print_usage
    exit 1
fi

setup_platform
if [ $? -gt 0 ]; then
    echo "$INVALID_COMMAND_LINE_MSG" ;
    print_usage
    exit 1
fi

require "ACTION"
if [ $? -gt 0 ]; then
    echo "$INVALID_COMMAND_LINE_MSG" ;
    print_usage
    exit 1
fi

trace_step "$INIT_PLATFORM_MSG" "init_platform"
trace_step "$EXECUTE_ACTION_MSG $ACTION" "${ACTION}_action"

