projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7c49ef
)
+ this is a small script for helping TargetWizard auto-generate
author
John Beppu
<beppu@lbox.org>
Wed, 23 Feb 2000 18:17:35 +0000
(18:17 -0000)
committer
John 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]
patch
|
blob
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>