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