Welcome to mirror list, hosted at ThFree Co, Russian Federation.

define.sh - git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e45b058c44b2b167fca0dca5602783e016206aff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>