blob: e45b058c44b2b167fca0dca5602783e016206aff [file] [log] [blame]
John Beppudc75a732000-02-23 18:17:35 +00001#!/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
10for 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
21done
22
23# </GPL>