Rizin
unix-like reverse engineering framework and cli tools
create_tags_rz.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
#
3
# SPDX-FileCopyrightText: 2021 ret2libc <sirmy15@gmail.com>
4
# SPDX-License-Identifier: LGPL-3.0-only
5
6
""" Portable python script to create tags.rz file from a list of files """
7
8
import
os
9
from
sys
import
argv
10
11
for
fname
in
argv[1:]:
12
with
open(fname, encoding=
"utf8"
)
as
f:
13
text =
" "
.join(f.read().splitlines())
14
print(
"ft %s %s"
% (os.path.basename(fname), text))
sys
create_tags_rz.py
Generated by
1.9.1