diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-15 11:43:47 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-15 18:35:02 +0100 |
commit | 9a6da617dbbf6713a7cc69e5b97543f18941e79a (patch) | |
tree | ae2434e8790f2d01fc62bac6b17ff326b51e1234 /tools | |
parent | e363b0e4fc4f32225034a11dd53c0cc68747ba6e (diff) | |
download | systemd-9a6da617dbbf6713a7cc69e5b97543f18941e79a.tar.gz |
meson: download full syscall tables from hrw/syscalls-table
The target is renamed to 'update-syscall-tables'. (Other targets
with similar names will be added later.)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/syscall-names-update.sh | 6 | ||||
-rwxr-xr-x | tools/syscall-table-update.sh | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/tools/syscall-names-update.sh b/tools/syscall-names-update.sh deleted file mode 100755 index c884b93cda..0000000000 --- a/tools/syscall-names-update.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -eu - -cd "$1" - -curl -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text' diff --git a/tools/syscall-table-update.sh b/tools/syscall-table-update.sh new file mode 100755 index 0000000000..15b7792c53 --- /dev/null +++ b/tools/syscall-table-update.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -eu + +cd "$1" && shift + +curl -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text' + +for arch in "$@"; do + curl -L -o syscalls-$arch "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch" +done |