3 # Adapted from Linux kernel's "Kbuild":
4 # commit 1cdf25d704f7951d02a04064c97db547d6021872
5 # Author: Christoph Lameter <clameter@sgi.com>
9 # Default sed regexp - multiline due to syntax constraints
10 SED_CMD="/^->/{s:->#\(.*\):/* \1 */:; \
11 s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 (\2) /* \3 */:; \
12 s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
16 echo "#ifndef __ASM_OFFSETS_H__"
17 echo "#define __ASM_OFFSETS_H__"
19 echo " * DO NOT MODIFY."
21 echo " * This file was generated by $(basename $0)"
25 sed -ne "${SED_CMD}" $1