summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-01-19 14:51:44 +0100
committerBenjamin Berg <bberg@redhat.com>2021-01-19 15:05:27 +0100
commit84171ba17926c43b1aaabbcead8327824606cbf2 (patch)
tree3d92fdf3353cd35a271ee16d89a17163a9e38780
parentbf108eb9429496c4f1d8b30139136f95687307f1 (diff)
downloadsystemd-84171ba17926c43b1aaabbcead8327824606cbf2.tar.gz
tools: Pass source directory to autosuspend-update.sh
This makes sense so that we can extend the script to also update other files.
-rw-r--r--hwdb.d/meson.build2
-rwxr-xr-xtools/autosuspend-update.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/hwdb.d/meson.build b/hwdb.d/meson.build
index f26e1f8576..ec7060a7a1 100644
--- a/hwdb.d/meson.build
+++ b/hwdb.d/meson.build
@@ -70,4 +70,4 @@ run_target(
run_target(
'autosuspend-update',
- command : [autosuspend_update_sh, project_source_root + '/tools/chromiumos'])
+ command : [autosuspend_update_sh, project_source_root])
diff --git a/tools/autosuspend-update.sh b/tools/autosuspend-update.sh
index 0e93eab720..ce945f84f6 100755
--- a/tools/autosuspend-update.sh
+++ b/tools/autosuspend-update.sh
@@ -4,4 +4,4 @@ set -eu
cd "$1"
(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
+ | base64 -d > tools/chromiumos/gen_autosuspend_rules.py \ No newline at end of file