File: m4-control

package info (click to toggle)
ndiswrapper 1.28-1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 956 kB
  • ctags: 5,763
  • sloc: ansic: 21,349; perl: 743; makefile: 384; asm: 159; sh: 134
file content (16 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if test -f ../driver/ndiswrapper.h; then
	NDIS_UTILS_VERS=$(sed -n 's/^\#define[ \t]\+UTILS_VERSION[ \t]\+"\([^"]\+\)"/\1/p' \
		../driver/ndiswrapper.h)
else
	NDIS_UTILS_VERS="$1"
fi

test -n "$NDIS_UTILS_VERS" || { echo "Must define NDIS_UTILS_VERS"; exit 1; }

test -x /usr/bin/m4 || { echo "HINT: apt-get install m4"; exit 1; }

for template in *.prem4; do
	m4 -DNDIS_UTILS_VERS="$NDIS_UTILS_VERS" $template > ${template%.prem4}
done