mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-27 21:50:32 +00:00
dc75a739ac
busybox.defs.h
24 lines
289 B
Bash
Executable File
24 lines
289 B
Bash
Executable File
#!/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>
|