diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-27 13:56:12 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-28 09:55:35 +0100 |
commit | 984b529684bf5597984b8d7ed8317b7d239b8dd3 (patch) | |
tree | d227a370a11bdb21f13ebc113578a396ad229a1c | |
parent | 2bc48bbdd717c3d4fa1345218cf4c2f5d131152e (diff) | |
download | systemd-984b529684bf5597984b8d7ed8317b7d239b8dd3.tar.gz |
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.
-rw-r--r-- | src/basic/meson.build | 2 | ||||
-rw-r--r-- | src/basic/syscall-list.txt (renamed from src/basic/syscall-names.text) | 0 | ||||
-rw-r--r-- | src/shared/meson.build | 2 | ||||
-rwxr-xr-x | tools/syscall-table-update.sh | 2 |
4 files changed, 3 insertions, 3 deletions
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 index 8287d5c5fc..8287d5c5fc 100644 --- a/src/basic/syscall-names.text +++ b/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" |