| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 3 # Does the equivalent of | 7 # Does the equivalent of |
| 4 # sed -e A -e B infile > outfile | 8 # sed -e A -e B infile > outfile |
| 5 # in a world where doing it from gyp eats the redirection. | 9 # in a world where doing it from gyp eats the redirection. |
| 6 | 10 |
| 7 infile="$1" | 11 infile="$1" |
| 8 outfile="$2" | 12 outfile="$2" |
| 9 shift 2 | 13 shift 2 |
| 10 | 14 |
| 11 sed "$@" "$infile" > "$outfile" | 15 sed "$@" "$infile" > "$outfile" |
| OLD | NEW |