ad05b5
#!/bin/sh
ad05b5
# Fixes patch from upstream tracker view
ad05b5
gawk '
ad05b5
BEGIN {
ad05b5
   dir=""
ad05b5
}
ad05b5
/^Index: openssl\// {
ad05b5
   dir = $2
ad05b5
}
ad05b5
/^(---|\+\+\+)/ {
ad05b5
   $2 = dir
ad05b5
}
ad05b5
{
ad05b5
   print
ad05b5
}'