diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-25 19:04:07 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-25 19:04:07 +0000 |
commit | 7df4c0f837df5d338a6dd9fd2e39b243f6f45dac (patch) | |
tree | a7569db654cd8942c8aafda99cd2562b0060835a /tools/git | |
parent | 0f798e65ce2b301489cfccbc9d55549ae47d8f38 (diff) | |
download | chromium_src-7df4c0f837df5d338a6dd9fd2e39b243f6f45dac.zip chromium_src-7df4c0f837df5d338a6dd9fd2e39b243f6f45dac.tar.gz chromium_src-7df4c0f837df5d338a6dd9fd2e39b243f6f45dac.tar.bz2 |
Make update-copyrights.sh to work on both Linux and BSD (such as OS X)
Linux mktemp: http://linux.die.net/man/1/mktemp
BSD mktemp: http://www.manpagez.com/man/1/mktemp/
BUG=none
TEST=Run tools/git/update-copyrights.sh, it should work on both OS X and Linux
Review URL: http://codereview.chromium.org/6900040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/git')
-rwxr-xr-x | tools/git/update-copyrights.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/git/update-copyrights.sh b/tools/git/update-copyrights.sh index e31dfb9..4112ef9 100755 --- a/tools/git/update-copyrights.sh +++ b/tools/git/update-copyrights.sh @@ -3,7 +3,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -tmp=$(mktemp) +tmp=$(mktemp -t chromium-update-copyrights.XXXXX) trap "rm -f $tmp" EXIT git diff --name-only $(git cl upstream)... | while read file; do cp "$file" "$tmp" |