summaryrefslogtreecommitdiffstats
path: root/update
blob: 494485c369d578cf9b5cd628f1b05b51afc2f327 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

NAME=`echo $1 | sed 's/\.h//' | tr a-z A-Z`

awk "BEGIN { userspace=1 }
/ifdef __KERNEL__/ { userspace = !userspace }
{ if (userspace == 1) print }
END { print \"#endif /* __${NAME}_H */\" }" \
	< kernel/include/linux/netfilter/$1 > include/libipset/linux_$1