From 9c55633809d2886d06def3da9547d94e4df74de3 Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Thu, 14 Dec 2006 00:10:53 +0000 Subject: [PATCH] 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 --- build/jam/MiscRules | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/build/jam/MiscRules b/build/jam/MiscRules index ce6a89e75f..7b3d53242e 100644 --- a/build/jam/MiscRules +++ b/build/jam/MiscRules @@ -76,44 +76,3 @@ rule MakeLocateDebug } } -rule SearchAndReplace -{ - # SearchAndReplace : : : - # A code generator that searches and replaces text in a source file to - # produce another. - # : The file (a source file) being created by this - # search and replace code generation. - # : The file being used to generate . - # : The string to search for in . - # : 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 : - # : The file (a source file) being created by this - # sed run. - # : 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) -} -