2014-01-27 12:56:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This cool can be used to strip most of the copyrightable material from header files.
|
2023-08-10 13:02:52 +00:00
|
|
|
# Remember that all files processed with this script still need to be checked manually!
|
2014-01-27 12:56:48 +00:00
|
|
|
|
2014-01-27 13:43:29 +00:00
|
|
|
gcc -DNS_BLOCKS_AVAILABLE -fpreprocessed -dD -E "$1" | egrep -v '# [[:digit:]]' | sed -r 's/APPKIT_EXTERN/EXTERN_C/;s/ ?(NS_AVAILABLE(_MAC)?|NS_DEPRECATED_MAC|NS_CLASS_AVAILABLE)\([^)]+\)//;s/#pragma mark.*//;s/NS_AUTOMATED_REFCOUNT_WEAK_UNAVAILABLE//;s/NS_RETURNS_INNER_POINTER//;s/NS_FORMAT_FUNCTION\(([0-9]+), ?([0-9]+)\)//'
|
2014-01-27 12:56:48 +00:00
|
|
|
|