diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-27 14:04:14 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-28 09:55:35 +0100 |
commit | d3821a339e75a8589304c9ef1b6654ac52319102 (patch) | |
tree | 8b786e654eae7fc350f8fedf250155e60432d81e /tools/update-syscall-tables.sh | |
parent | 1f6f8cc8039a204609ddab79791ef22ee6340da0 (diff) | |
download | systemd-d3821a339e75a8589304c9ef1b6654ac52319102.tar.gz |
tools: rename helper to match target name
The target is update-syscall-tables, so let's call the script
update-syscall-tables.sh to reduce the cognitive overhead when
trying to find the right file.
Diffstat (limited to 'tools/update-syscall-tables.sh')
-rwxr-xr-x | tools/update-syscall-tables.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/update-syscall-tables.sh b/tools/update-syscall-tables.sh new file mode 100755 index 0000000000..4f56aecedd --- /dev/null +++ b/tools/update-syscall-tables.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later +set -eu + +cd "$1" && shift + +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.txt "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch" +done |