diff options
Diffstat (limited to 'platform-logic/src/main/scripts')
-rwxr-xr-x | platform-logic/src/main/scripts/updateDgNamespace.sh | 3 | ||||
-rwxr-xr-x | platform-logic/src/main/scripts/updatePackages.sh | 21 |
2 files changed, 22 insertions, 2 deletions
diff --git a/platform-logic/src/main/scripts/updateDgNamespace.sh b/platform-logic/src/main/scripts/updateDgNamespace.sh index cb93c6be..dde88911 100755 --- a/platform-logic/src/main/scripts/updateDgNamespace.sh +++ b/platform-logic/src/main/scripts/updateDgNamespace.sh @@ -2,8 +2,7 @@ updateFile() { sed -i .orig -e ' -s/\(xmlns=.\)http:\/\/www\.onap\.org\/sdnctl\/svclogic/\1http:\/\/www\.onap\.org\/sdnc\/svclogic/g -s/\(xsi:schemaLocation=.\)http:\/\/www\.openecomp\.org\/sdnctl\/svclogic/\1http:\/\/www\.onap\.org\/sdnc\/svclogic/g +s/openecomp.org/onap.org/g ' $1 } 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 |