Removing the now unneeded SearchAndReplace and Sed rules. They can always be

added back if need be. There were some building bugs anyhow in these versions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19507 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood
2006-12-14 00:10:53 +00:00
parent b9a3b1c414
commit 9c55633809
-41
View File
@@ -76,44 +76,3 @@ rule MakeLocateDebug
}
}
rule SearchAndReplace
{
# SearchAndReplace <newFile> : <sourceFile> : <stringToFind> : <stringToReplaceWith>
# A code generator that searches and replaces text in a source file to
# produce another.
# <newFile>: The file (a source file) being created by this
# search and replace code generation.
# <sourceFile>: The file being used to generate <newFile>.
# <stringToFind>: The string to search for in <sourceFile>.
# <stringToReplaceWith>: The string to replace with in the new file.
#
# For example usage see the MarkAs Tracker add-on code.
#
local _new_file = [ FGristSourceFiles $(1) ] ;
Depends all : $(_new_file) ;
Depends $(_new_file) : $(2) ;
MakeLocate $(_new_file) : $(LOCATE_SOURCE) ;
SEARCH on $(_new_file) = $(LOCATE_SOURCE) ;
Sed $(_new_file) : $(2) -e s/$(3)/$(4)/g ;
Clean clean : $(_new_file) ;
}
rule Sed
{
# Sed <newFile> : <parameters>
# <newFile>: The file (a source file) being created by this
# sed run.
# <parameters>: The parameters to sed in a list. The first item is
# the source file being searched through, the rest
# are standard sed parameters.
# We don't care about the parameters to sed
NoCare $(2[2-]) ;
NotFile $(2[2-]) ;
}
actions Sed
{
$(SED) $(2[2-]) $(2[1]) > $(1)
}