depfix.sed 463 Bytes
Newer Older
Theodore Ts'o's avatar
Theodore Ts'o committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#
# Insert the header.....
#
1i\
# +++ Dependency line eater +++\
# \
# Makefile dependencies follow.  This must be the last section in\
# the Makefile.in file\
#

#
# Remove line continuations....
#
Theodore Ts'o's avatar
Theodore Ts'o committed
14 15 16 17 18 19 20 21 22 23
:FIRST
y/	/ /
s/^ *//
/\\$/{
N
y/	/ /
s/\\\n */ /
bFIRST
}
s/  */ /g
Theodore Ts'o's avatar
Theodore Ts'o committed
24 25 26 27

s;/usr/include/[^ ]* *;;g
s;/usr/lib/[^ ]* *;;g
s;/mit/cygnus[^ ]* *;;g
28 29
s;\.\./[^ ]*lib/blkid/blkid[^ ]* *;;g
s;\.\./[^ ]*lib/uuid/uuid.h[^ ]* *;;g
Theodore Ts'o's avatar
Theodore Ts'o committed
30 31 32 33 34 35

#
# Now insert a trailing newline...
#
$a\