+ this is a small script for helping TargetWizard auto-generate
authorJohn Beppu <beppu@lbox.org>
Wed, 23 Feb 2000 18:17:35 +0000 (18:17 -0000)
committerJohn Beppu <beppu@lbox.org>
Wed, 23 Feb 2000 18:17:35 +0000 (18:17 -0000)
  busybox.defs.h

define.sh [new file with mode: 0755]

diff --git a/define.sh b/define.sh
new file mode 100755 (executable)
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>