mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
+ this is a small script for helping TargetWizard auto-generate
busybox.defs.h
This commit is contained in:
parent
f7c49ef2d1
commit
dc75a739ac
23
define.sh
Executable file
23
define.sh
Executable file
@ -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>
|
Loading…
Reference in New Issue
Block a user