Linux preempt-rt

Check our new training course

Real-Time Linux with PREEMPT_RT

Check our new training course
with Creative Commons CC-BY-SA
lecture and lab materials

Bootlin logo

Elixir Cross Referencer

#!/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>