mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-09 15:45:08 +00:00
9 lines
221 B
Bash
Executable File
9 lines
221 B
Bash
Executable File
#!/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|' "$@"
|