e2fsprogs/depfix.sed

36 lines
463 B
Sed
Raw Normal View History

1997-04-26 21:58:21 +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
1997-04-26 21:58:21 +08:00
s;/usr/include/[^ ]* *;;g
s;/usr/lib/[^ ]* *;;g
s;/mit/cygnus[^ ]* *;;g
s;\.\./[^ ]*lib/blkid/blkid[^ ]* *;;g
s;\.\./[^ ]*lib/uuid/uuid.h[^ ]* *;;g
1997-04-26 21:58:21 +08:00
#
# Now insert a trailing newline...
#
$a\