From 4efe44ed271aeed8e25e909344788d92a0d9f82b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 15:50:46 -0800 Subject: Fully upgraded to 4.10.12.7, including deprecating the old list/dict comprehension methods, in favor of the new native support. --- tools/replace.nom | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools/replace.nom') diff --git a/tools/replace.nom b/tools/replace.nom index a0391d6..ffd96c1 100755 --- a/tools/replace.nom +++ b/tools/replace.nom @@ -1,10 +1,10 @@ -#!/usr/bin/env nomsu -V4.8.10 +#!/usr/bin/env nomsu -V4.10.12.7 # Tool to find and replace one tree with another. nomsu tools/replace.nom [-i] tree_to_replace replacement file1 file2 directory1 ... If "-i" is the first argument, replacements will be performed in-place. Otherwise, the upgraded code will be printed. - + use "lib/os.nom" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -35,9 +35,10 @@ for %path in %args: ..#!/usr/bin/env nomsu -V\(%tree.version or (Nomsu version)) \(%tree2 as nomsu)" - if: + when: %inplace: say "Replaced in \%filename" write %text to file %filename - else: say %text + else: + say %text -- cgit v1.2.3