mirror of
https://github.com/systemd/systemd.git
synced 2026-07-14 03:20:22 +00:00
loadavg.h is an internal header of the Linux source repository, and as such it is licensed as GPLv2-only, without syscall exception. We use it only for 4 macros, which are simply doing some math calculations that cannot thus be subject to copyright. Reimplement the same calculations in another internal header and delete loadavg.h from our tree.
11 lines
296 B
Bash
Executable File
11 lines
296 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
for i in *.h */*.h; do
|
|
curl --fail "https://raw.githubusercontent.com/torvalds/linux/master/include/uapi/linux/$i" -o "$i"
|
|
|
|
sed -i -e 's/__user //g' -e '/^#include <linux\/compiler.h>/ d' "$i"
|
|
done
|