diff options
Diffstat (limited to 'platform-logic/src/main/scripts/updatePackages.sh')
-rwxr-xr-x | platform-logic/src/main/scripts/updatePackages.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/platform-logic/src/main/scripts/updatePackages.sh b/platform-logic/src/main/scripts/updatePackages.sh new file mode 100755 index 00000000..2fd0e363 --- /dev/null +++ b/platform-logic/src/main/scripts/updatePackages.sh @@ -0,0 +1,21 @@ +#! /bin/bash + +updateFile() { +sed -i .orig -e ' +s/\(plugin=.\)org.openecomp.sdnc.\(prop\)/\org.onap.ccsdk.sli.plugins.\2/g +s/\(plugin=.\)org.openecomp.sdnc.\(ra\)/\1org.onap.ccsdk.sli.adaptors.\2/g +s/\(plugin=.\)org.openecomp.sdnc.\(restapicall\)/\1org.onap.ccsdk.sli.plugins.\2/g +s/\(plugin=.\)org.openecomp.sdnc.sli.\(aai\)/\1org.onap.ccsdk.sli.adaptors.\2/g +s/\(plugin=.\)org.openecomp.sdnc.sli.common/\1org.onap.ccsdk.sli.core.sli/g +s/\(plugin=.\)org.openecomp.sdnc.\(sli.provider\)/\1org.onap.ccsdk.sli.core.\2/g +s/\(plugin=\\\{0,1\}.\)com.att.sdnctl.\(sli.recording\)/\1org.openecomp.sdnc.\2/g +s/\(plugin=.\)org.openecomp.sdnc.sli.\(resource.mdsal\)/\1org.onap.ccsdk.sli.adaptors.\2/g +s/\(plugin=.\)org.openecomp.sdnc.sli\(resource.sql\)/\org.onap.ccsdk.sli.adaptors.\2/g +s/\(plugin=.\)org.openecomp.sdnc.sli.SliPluginUtils/\1org.onap.ccsdk.sli.core.slipluginutils/g +' $1 +} + +for file in $@ +do + updateFile $file +done |