Updated script to handle sed issues

The 'sed' line added to the updParentVersion script introduced 2 problems:

1) sed inline edit (-i option) saves a backup copy unless you pass the
empty string ('') as the suffix , which is the arg to the -i option.
2) BSD sed (e.g. the version installed in Mac OSX) does not support \n
as newline in replacement strings.  The more portable solution is to
simply escape a literal newline in the replacement string.

Change-Id: Ia3a3b2635b8cc9ce57ec41c2e55c1384587325c7
Issue-ID: CCSDK-2308
Signed-off-by: Dan Timoney <dtimoney@att.com>
1 file changed
tree: 6a961a4ecb6b1aa8397c7b7019ceb3c00e9504dd
  1. dependencies-bom/
  2. dependencies-odl-bom/
  3. docs/
  4. odlparent/
  5. releases/
  6. springboot/
  7. standalone/
  8. tools/
  9. .gitignore
  10. INFO.yaml
  11. pom.xml
  12. Readme.MD
  13. version.properties
Readme.MD

!!!!! PLEASE READ !!!!!

The actual parent poms are being generated from below two pom-template

ODL related parent poms:

ccsdk/parent/odlparent/setup/src/main/template/pom-template.xml

Springboot related parent poms:

ccsdk/parent/springboot/spring-boot-setup/src/main/template/pom-template.xml

Note:

Any updates needed should be made to respective template and not to the generated pom.xml file/files.

Every parent pom has associated properties files (src/main/properties).
Setup module will read those properties and populate respective values within generated pom.xml