Sign in
webkit
/
WebKit
/
9765eaae75bc2c2ccc4b2468231acc50588e5d25
/
.
/
BugsSite
/
PrettyPatch
/
prettify.rb
blob: 6502ffaf1cfcae4d118d045ff9457cecb1f6ac6b [
file
] [
log
] [
blame
]
#!/usr/bin/ruby
require
'PrettyPatch'
patch_data
=
nil
if
ARGV
.
length
==
0
||
ARGV
[
0
]
==
'-'
then
patch_data
=
$stdin
.
read
else
File
.
open
(
ARGV
[
0
])
{
|
file
|
patch_data
=
file
.
read
}
end
puts
PrettyPatch
.
prettify
(
patch_data
)