From: John Beppu Date: Wed, 23 Feb 2000 18:17:35 +0000 (-0000) Subject: + this is a small script for helping TargetWizard auto-generate X-Git-Tag: 0_43pre1~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc75a739acefa740f91cf1642f730d5d1a0658ae;p=oweals%2Fbusybox.git + this is a small script for helping TargetWizard auto-generate busybox.defs.h --- diff --git a/define.sh b/define.sh new file mode 100755 index 000000000..e45b058c4 --- /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 ... +# +# + +for i ; do + case $1 in + !!*!!) + echo "// #define" `echo $1 | sed 's/^!!\(.*\)!!$/\1/'` + shift + ;; + *) + echo "#define $1" + shift + ;; + esac +done + +#