e2fsprogs/depfix.sed

36 lines
457 B
Sed
Raw Permalink Normal View History

2022-05-13 20:16:34 +08:00
#
# Insert the header.....
#
1i\
# +++ Dependency line eater +++\
# \
# Makefile dependencies follow. This must be the last section in\
# the Makefile.in file\
#
#
# Remove line continuations....
#
:FIRST
y/ / /
s/^ *//
/\\$/{
N
y/ / /
s/\\\n */ /
bFIRST
}
s/ */ /g
s;/usr/include/[^ ]* *;;g
s;/usr/lib/[^ ]* *;;g
2024-03-26 10:09:11 +08:00
s;/bin/[^ ]* *;;g
2022-05-13 20:16:34 +08:00
s;\.\./[^ ]*lib/blkid/blkid[^ ]* *;;g
s;\.\./[^ ]*lib/uuid/uuid.h[^ ]* *;;g
#
# Now insert a trailing newline...
#
$a\