aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api/model/swagger/fixModuleUri.sh
diff options
context:
space:
mode:
Diffstat (limited to 'generic-resource-api/model/swagger/fixModuleUri.sh')
-rwxr-xr-xgeneric-resource-api/model/swagger/fixModuleUri.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic-resource-api/model/swagger/fixModuleUri.sh b/generic-resource-api/model/swagger/fixModuleUri.sh
new file mode 100755
index 00000000..fae3872c
--- /dev/null
+++ b/generic-resource-api/model/swagger/fixModuleUri.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mv $2 $2.backup
+cat $2.backup | sed -e 's/'$1':/_&/1' -e 's/\([^_]\)'$1':/\//g' -e 's/_\('$1':\)/\1/' > $2
+rm $2.backup