Finish off the libc5 porting effort. Everything now works with libc5
[oweals/busybox.git] / define.sh
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>