summaryrefslogtreecommitdiffstats
path: root/update
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-04-22 17:14:21 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2010-04-22 17:14:21 +0200
commit62f71e22a1db90eee62ea9688f0c77cb6cf5ccae (patch)
tree73442db9c9c96f9bee4e318b8a3afc58fea01ef7 /update
parent9638135a8ea91a157a68148fb1d84edec52c313b (diff)
Tenth stage to ipset-5
Add new test files and toplevel files.
Diffstat (limited to 'update')
-rwxr-xr-xupdate9
1 files changed, 9 insertions, 0 deletions
diff --git a/update b/update
new file mode 100755
index 0000000..494485c
--- /dev/null
+++ b/update
@@ -0,0 +1,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