diff options
author | Kenji Hosokawa <khosokawa@jp.adit-jv.com> | 2020-08-24 21:58:42 +0900 |
---|---|---|
committer | Kenji Hosokawa <khosokawa@jp.adit-jv.com> | 2020-08-24 21:58:42 +0900 |
commit | 2b4ae7fde370bc3316ab30cc38b74d23e785b360 (patch) | |
tree | 41b6eb70b3419c2fbd192ed133c5890a985eddec /src/script/remove_internal.py | |
parent | 6694a4d2952ebd171564932200cac00d6e5792f4 (diff) |
First commitjellyfish_9.99.4jellyfish/9.99.49.99.4
Signed-off-by: Kenji Hosokawa <khosokawa@jp.adit-jv.com>
Change-Id: I381abb0a6521f5349768a76ef7ceecbce4b2d701
Diffstat (limited to 'src/script/remove_internal.py')
-rw-r--r-- | src/script/remove_internal.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/script/remove_internal.py b/src/script/remove_internal.py new file mode 100644 index 0000000..24f62c4 --- /dev/null +++ b/src/script/remove_internal.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python3 + +import sys +import re + +def convert_release(): + skip_flag = False + for line in sys.stdin: + line = line.rstrip() + if not skip_flag: + if re.search(r'// +internal +{', line): + skip_flag = True + continue + else: + if re.search(r'// +}', line): + skip_flag = False + continue + print(line) + +if __name__ == '__main__': + convert_release() + +# end of file |