John Beppu | dc75a73 | 2000-02-23 18:17:35 +0000 | [diff] [blame] | 1 | #!/bin/sh |
2 | # define.sh - creates an include file full of #defines | ||||
3 | # | ||||
4 | # SYNOPSIS | ||||
5 | # | ||||
6 | # define.sh POSIX_ME_HARDER ... | ||||
7 | # | ||||
8 | # <GPL> | ||||
9 | |||||
10 | for i ; do | ||||
11 | case $1 in | ||||
12 | !!*!!) | ||||
13 | echo "// #define" `echo $1 | sed 's/^!!\(.*\)!!$/\1/'` | ||||
14 | shift | ||||
15 | ;; | ||||
16 | *) | ||||
17 | echo "#define $1" | ||||
18 | shift | ||||
19 | ;; | ||||
20 | esac | ||||
21 | done | ||||
22 | |||||
23 | # </GPL> |