mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
script for once-ification
This still tends to require by-hand cleanups of bare #endif lines
This commit is contained in:
parent
56ce9c33c0
commit
8fbec13e9c
1 changed files with 7 additions and 0 deletions
7
tools/once
Executable file
7
tools/once
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
for x in *.h ; do
|
||||
sed -i -e 's/^#ifndef *__[a-z_][a-z_]*_h__/#pragma once/' -e '/^#define *__[a-z_][a-z_]*_h__/d' -e '/^#endif *\/\* __[a-z_][a-z_]*_h__.*$/d' -e '/^#endif *\/\/ *__[a-z_][a-z_]*_h__.*$/d' $x
|
||||
done
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue