Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
selinux
/
5766295bb2ad45c85a1cc489f220dde07074b737
/
.
/
scripts
/
Lindent
blob: 1bc7037f0f53f90749d7c2c7ebc5033623f14b70 [
file
] [
log
] [
blame
]
#!/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|'
"$@"