Whamcloud - gitweb
libsupport: fix sort_r.h to work on FreeBSD 14
[tools/e2fsprogs.git] / depfix.sed
1 #
2 # Insert the header.....
3 #
4 1i\
5 # +++ Dependency line eater +++\
6 # \
7 # Makefile dependencies follow.  This must be the last section in\
8 # the Makefile.in file\
9 #
10
11 #
12 # Remove line continuations....
13 #
14 :FIRST
15 y/      / /
16 s/^ *//
17 /\\$/{
18 N
19 y/      / /
20 s/\\\n */ /
21 bFIRST
22 }
23 s/  */ /g
24
25 s;/usr/include/[^ ]* *;;g
26 s;/usr/lib/[^ ]* *;;g
27 s;/bin/[^ ]* *;;g
28 s;\.\./[^ ]*lib/blkid/blkid[^ ]* *;;g
29 s;\.\./[^ ]*lib/uuid/uuid.h[^ ]* *;;g
30
31 #
32 # Now insert a trailing newline...
33 #
34 $a\
35