From: Zbigniew Jędrzejewski-Szmek Date: Wed, 27 Jan 2021 12:56:12 +0000 (+0100) Subject: Use .txt as the extension for syscall list file X-Git-Tag: v248-rc1~242^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=984b529684bf5597984b8d7ed8317b7d239b8dd3;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/basic/meson.build b/src/basic/meson.build index c801251e308..8978e81600e 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 0f50522b6a5..f301a9f610d 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 a6d7d14732c..410b20c5d95 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"