Add -d debug option to save preprocessed files.
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
9c392088de
commit
e5ebff7b6a
@ -30,6 +30,7 @@ VERBOSE=false
|
|||||||
DONT=false
|
DONT=false
|
||||||
STOPARGS=false
|
STOPARGS=false
|
||||||
COMMENTS=false
|
COMMENTS=false
|
||||||
|
DEBUG=""
|
||||||
|
|
||||||
# for this exercise, we want to force the openssl style, so we roll
|
# for this exercise, we want to force the openssl style, so we roll
|
||||||
# our own indent profile, which is at a well known location
|
# our own indent profile, which is at a well known location
|
||||||
@ -56,6 +57,8 @@ do
|
|||||||
continue;;
|
continue;;
|
||||||
-nc) COMMENTS="true";
|
-nc) COMMENTS="true";
|
||||||
continue;;
|
continue;;
|
||||||
|
-d) DEBUG='eval tee "$j.pre" |'
|
||||||
|
continue;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -120,7 +123,7 @@ do
|
|||||||
-e '/ASN1_(ITEM_ref|ITEM_ptr|ITEM_rptr|PCTX)/ || s/^((ASN1|ADB)_[^\*]*[){=,]+[ \t]*)$/\/**INDENT-OFF**\/\n$1/;' \
|
-e '/ASN1_(ITEM_ref|ITEM_ptr|ITEM_rptr|PCTX)/ || s/^((ASN1|ADB)_[^\*]*[){=,]+[ \t]*)$/\/**INDENT-OFF**\/\n$1/;' \
|
||||||
-e 's/^(} (ASN1|ADB)_[^\*]*[\){=,;]+)$/$1\n\/**INDENT-ON**\//;' \
|
-e 's/^(} (ASN1|ADB)_[^\*]*[\){=,;]+)$/$1\n\/**INDENT-ON**\//;' \
|
||||||
| \
|
| \
|
||||||
indent $INDENT_ARGS | \
|
$DEBUG indent $INDENT_ARGS | \
|
||||||
perl -np \
|
perl -np \
|
||||||
-e 's/^([ \t]*)\/\*-(.*)\*\/[ \t]*$/$1\/*$2*\//;' \
|
-e 's/^([ \t]*)\/\*-(.*)\*\/[ \t]*$/$1\/*$2*\//;' \
|
||||||
-e 's/^\/\*-((Copyright|=|----).*)$/\/* $1/;' \
|
-e 's/^\/\*-((Copyright|=|----).*)$/\/* $1/;' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user