summaryrefslogtreecommitdiffstats
path: root/src/basic/linux/update.sh
blob: b0b0cdc949066bce38410198a14ab2b259c791dd (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

set -eu

for i in *.h */*.h; do
    curl 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