diff options
author | 2008-11-29 03:29:16 -0500 | |
---|---|---|
committer | 2008-11-29 03:29:16 -0500 | |
commit | 7619984ebeeb1eb152c823c4c48ed91190380fc7 (patch) | |
tree | 02d21be54ca200b4476d799486c682ce584426ad /scripts | |
parent | simplify awk scripts (diff) | |
download | sandbox-7619984ebeeb1eb152c823c4c48ed91190380fc7.tar.gz sandbox-7619984ebeeb1eb152c823c4c48ed91190380fc7.tar.bz2 sandbox-7619984ebeeb1eb152c823c4c48ed91190380fc7.zip |
libsandbox.map: beautify output
Make the output of gen_symbol_version_map.awk a bit more readable.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/gen_symbol_version_map.awk | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/gen_symbol_version_map.awk b/scripts/gen_symbol_version_map.awk index e8fbf47..d4a320d 100644 --- a/scripts/gen_symbol_version_map.awk +++ b/scripts/gen_symbol_version_map.awk @@ -109,21 +109,20 @@ END { printf("{\n"); } - printf(" global:\n"); + printf("\tglobal:\n"); split(SYMBOL_LIST[sym_version], sym_names); - for (x in sym_names) { - printf(" %s;\n", sym_names[x]); - } + for (x in sym_names) + printf("\t\t%s;\n", sym_names[x]); if (!old_sym_version) { - printf(" local:\n"); - printf(" *;\n"); + printf("\tlocal:\n"); + printf("\t\t*;\n"); printf("};\n"); - } else { + } else printf("} %s;\n", old_sym_version); - } + printf("\n"); old_sym_version = sym_version; } |