Skip to content
Snippets Groups Projects
Commit 2a9f8ab5 authored by david_williams's avatar david_williams
Browse files

prep for sed scripts

parent 91f9ea3d
No related branches found
No related tags found
No related merge requests found
# This script finds patterns of the old form of specifying modules, that
# consist of a path name ending with a module name. We know the model name
# should stay the same, so this is just to tweak the path names.
# Thought to be usefull for map files and Team Project Sets.
# Example use:
# The easiest case, if only a few files
# sed -f sedscript.sed oldfile.pfs > newfile.pfs
# This case worked as excpeted on Linux, but not on windows using Cygwin
# sed -ibak -f sedscript.sed *.pfs
$ A classic form:
# find releng/maps/ -name *.map -exec sed -ibak -f sedscript.sed '{}' \;
s:jst/components/assembly/features/org.eclipse.jst.feature:webtools.releng/assembly/features/org.eclipse.jst.feature:g
s:jst/components/assembly/features/org.eclipse.jst.sdk:webtools.releng/assembly/features/org.eclipse.jst.sdk:g
s:jst/components/assembly/features/org.eclipse.jst.tests:webtools.releng/assembly/features/org.eclipse.jst.tests:g
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment