mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-23 06:22:15 +00:00
9 lines
221 B
Plaintext
9 lines
221 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
perl -e 'undef $/;' -pi \
|
||
|
-e 's|#ifdef __cplusplus\n(.*?)\n#endif|//__CPP \1|g' "$@"
|
||
|
|
||
|
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"
|
||
|
|
||
|
perl -pi -e 's|^//__CPP (.*)$|#ifdef __cplusplus\n\1\n#endif|' "$@"
|