##############################################################################################################
##    Script Name    : upgradeStandardFields.sh                                                             ##
##    Author         : Sanjay Khattar                                                                       ##
##    Created on     : 05/07/2013                                                                           ##
##    Usage          : ./upgradeStandardFields.sh                                                           ##
##    Purpose        : Script for upgrading spec plugins.                                                   ##
##                                                                                                          ##
##############################################################################################################

#!/bin/sh

##
## This script copies options for standard fields like AppType, Rating, Genre, etc.  
##     from definition.xml to CMS database.
##

me="upgradeStandardFields.sh"

logMsg "$me invoked with args: $*"

ACTIVITY="copying standard fields options from definition.xml to DB"

logBeginMsg "$ACTIVITY"

homedir=$(pwd) 

cd upgrade25/dist/contentmgmt/
./scripts/convert_options.sh $*

cd $homedir

logDoneMsg "$ACTIVITY"
