aboutsummaryrefslogtreecommitdiff
path: root/define.sh
diff options
context:
space:
mode:
authorJohn Beppu <beppu@lbox.org>2000-02-23 18:17:35 +0000
committerJohn Beppu <beppu@lbox.org>2000-02-23 18:17:35 +0000
commitdc75a739acefa740f91cf1642f730d5d1a0658ae (patch)
treea566418700e91bce52b6704fc3f45ee9e7c23b62 /define.sh
parentf7c49ef2d106eb38f648432e2cff2a81bb982437 (diff)
downloadbusybox-w32-dc75a739acefa740f91cf1642f730d5d1a0658ae.tar.gz
busybox-w32-dc75a739acefa740f91cf1642f730d5d1a0658ae.tar.bz2
busybox-w32-dc75a739acefa740f91cf1642f730d5d1a0658ae.zip
+ this is a small script for helping TargetWizard auto-generate
busybox.defs.h
Diffstat (limited to 'define.sh')
-rwxr-xr-xdefine.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/define.sh b/define.sh
new file mode 100755
index 000000000..e45b058c4
--- /dev/null
+++ b/define.sh
@@ -0,0 +1,23 @@
1#!/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>