From 984b529684bf5597984b8d7ed8317b7d239b8dd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 27 Jan 2021 13:56:12 +0100 Subject: [PATCH] Use .txt as the extension for syscall list file Upstream uses .text, but this is rather unusual. Let's use .txt as the usual suffix for text files. This tells various editors and such that the file should be treated as plain text. I also want to a script to summarize license status, and having an easy-to-recognize suffix makes this easier. --- src/basic/meson.build | 2 +- src/basic/{syscall-names.text => syscall-list.txt} | 0 src/shared/meson.build | 2 +- tools/syscall-table-update.sh | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/basic/{syscall-names.text => syscall-list.txt} (100%) diff --git a/src/basic/meson.build b/src/basic/meson.build index c801251e30..8978e81600 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build @@ -361,7 +361,7 @@ run_target( 'update-syscall-tables', command : [syscall_table_update_sh, meson.current_source_dir()] + arch_list) -syscall_names_text = files('syscall-names.text') +syscall_list_txt = files('syscall-list.txt') syscall_lists = [] foreach arch: arch_list diff --git a/src/basic/syscall-names.text b/src/basic/syscall-list.txt similarity index 100% rename from src/basic/syscall-names.text rename to src/basic/syscall-list.txt diff --git a/src/shared/meson.build b/src/shared/meson.build index 0f50522b6a..f301a9f610 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -292,7 +292,7 @@ generate_syscall_list = find_program('generate-syscall-list.py') fname = 'syscall-list.h' syscall_list_h = custom_target( fname, - input : syscall_names_text, + input : syscall_list_txt, output : fname, command : [generate_syscall_list, '@INPUT@'], diff --git a/tools/syscall-table-update.sh b/tools/syscall-table-update.sh index a6d7d14732..410b20c5d9 100755 --- a/tools/syscall-table-update.sh +++ b/tools/syscall-table-update.sh @@ -4,7 +4,7 @@ set -eu cd "$1" && shift -curl --fail -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text' +curl --fail -L -o syscall-list.txt 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text' for arch in "$@"; do curl --fail -L -o syscalls-$arch "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch"