aboutsummaryrefslogtreecommitdiffstats
path: root/ubuntu/ndiswrapper/mkstubs.sh
blob: 7aab344ace19e5e66ec6773c66a0b150c0094a26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh

for file in "$@"; do
	echo
	echo "# automatically generated from $file"
	sed -n \
		-e 's/.*WIN_FUNC(\([^\,]\+\) *\, *\([0-9]\+\)).*/\
		   win2lin(\1, \2)/p'   \
		-e 's/.*WIN_FUNC_PTR(\([^\,]\+\) *\, *\([0-9]\+\)).*/\
		   win2lin(\1, \2)/p'   \
	   $file | sed -e 's/[ \t	]\+//' | sort -u; \
done