diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/autosuspend-update.sh | 2 | ||||
-rwxr-xr-x | tools/hwdb-update.sh | 14 | ||||
-rwxr-xr-x | tools/syscall-names-update.sh | 6 | ||||
-rwxr-xr-x | tools/syscall-table-update.sh | 10 |
4 files changed, 18 insertions, 14 deletions
diff --git a/tools/autosuspend-update.sh b/tools/autosuspend-update.sh index a4f99eb6b3..0e93eab720 100755 --- a/tools/autosuspend-update.sh +++ b/tools/autosuspend-update.sh @@ -3,5 +3,5 @@ set -eu cd "$1" -(curl -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \ +(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \ | base64 -d > gen_autosuspend_rules.py diff --git a/tools/hwdb-update.sh b/tools/hwdb-update.sh index 39efd75192..42251612dd 100755 --- a/tools/hwdb-update.sh +++ b/tools/hwdb-update.sh @@ -15,13 +15,13 @@ if [ "${2:-}" != "-n" ]; then ( [ -z "$permissive" ] || set +e set -x - curl -L -o usb.ids 'http://www.linux-usb.org/usb.ids' - curl -L -o pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' - curl -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt' - curl -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt' - curl -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt' - curl -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export' - curl -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export' + curl --fail -L -o usb.ids 'http://www.linux-usb.org/usb.ids' + curl --fail -L -o pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' + curl --fail -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt' + curl --fail -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt' + curl --fail -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt' + curl --fail -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export' + curl --fail -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export' ) fi set -x 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..e270246202 --- /dev/null +++ b/tools/syscall-table-update.sh @@ -0,0 +1,10 @@ +#!/bin/sh +set -eu + +cd "$1" && shift + +curl --fail -L -o syscall-names.text '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" +done |