diff options
author | John Beppu | 2000-02-23 18:17:35 +0000 |
---|---|---|
committer | John Beppu | 2000-02-23 18:17:35 +0000 |
commit | dc75a739acefa740f91cf1642f730d5d1a0658ae (patch) | |
tree | a566418700e91bce52b6704fc3f45ee9e7c23b62 | |
parent | f7c49ef2d106eb38f648432e2cff2a81bb982437 (diff) | |
download | busybox-dc75a739acefa740f91cf1642f730d5d1a0658ae.zip busybox-dc75a739acefa740f91cf1642f730d5d1a0658ae.tar.gz |
+ this is a small script for helping TargetWizard auto-generate
busybox.defs.h
-rwxr-xr-x | define.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/define.sh b/define.sh new file mode 100755 index 0000000..e45b058 --- /dev/null +++ b/define.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# define.sh - creates an include file full of #defines +# +# SYNOPSIS +# +# define.sh POSIX_ME_HARDER ... +# +# <GPL> + +for i ; do + case $1 in + !!*!!) + echo "// #define" `echo $1 | sed 's/^!!\(.*\)!!$/\1/'` + shift + ;; + *) + echo "#define $1" + shift + ;; + esac +done + +# </GPL> |