chiark / gitweb /
build: Introduce a variable "$sudo" and honour WIRINGPI_SUDO
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Sep 2015 16:41:38 +0000 (16:41 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 12 Sep 2015 19:38:20 +0000 (20:38 +0100)
commit73aa8956c543777c048c185132abe585fcb9ded8
treede7dde1b7fb527e8312f9945cfcbd1141a8e0c9e
parentac0f074ff7b79eb5201fdbbb5a44200ada2a6f99
build: Introduce a variable "$sudo" and honour WIRINGPI_SUDO

We are going to want to not run sudo sometimes.  So replace literal
invocations of sudo with a variable, which is set to `sudo' by
default, but can be overridden from the environment.

No functional change if the environment variable is not set.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
build