diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-15 11:32:24 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-15 11:36:59 +0100 |
commit | 62d399951802971b53aa3b8da7a9094629ea3303 (patch) | |
tree | 69a5c43666005a0982dbf67242bfbd0e35036dd7 /tools | |
parent | 67f5b9e06eabd9bf3037caf354f77fce0117d616 (diff) | |
download | systemd-62d399951802971b53aa3b8da7a9094629ea3303.tar.gz |
meson: add target to update the chromiumos rules
There is no change in the file right now, but the download seems to work
OK.
It's funny that the biggest company in the world cannot provide a
download link in plain text.
Diffstat (limited to 'tools')
-rw-r--r--[-rwxr-xr-x] | tools/chromiumos/gen_autosuspend_rules.py | 0 | ||||
-rwxr-xr-x | tools/meson-autosuspend-update.sh | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/chromiumos/gen_autosuspend_rules.py b/tools/chromiumos/gen_autosuspend_rules.py index e50d6e743a..e50d6e743a 100755..100644 --- a/tools/chromiumos/gen_autosuspend_rules.py +++ b/tools/chromiumos/gen_autosuspend_rules.py diff --git a/tools/meson-autosuspend-update.sh b/tools/meson-autosuspend-update.sh new file mode 100755 index 0000000000..a4f99eb6b3 --- /dev/null +++ b/tools/meson-autosuspend-update.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +cd "$1" + +(curl -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \ + | base64 -d > gen_autosuspend_rules.py |