You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
What steps will reproduce the problem?
1. make -C install staging_except_module
What is the expected output? What do you see instead?
options marked as "remove whole line" removed from output file
What version of the product are you using (please check X-Mod-Pagespeed
header)?
1.3.25.3
On what operating system?
PLD Linux
Which version of Apache?
2.2.23
Which MPM?
prefork
Sed version:
4.4.2
the problem is that sed does not match \n as newline, and therefore removing a
line does not work:
ifeq ($(ALL_DIRECTIVES_TEST),1)
# remove prefix
ALL_DIRECTIVES_TEST_SED_PATTERN=^\#ALL_DIRECTIVES
else
# remove whole line
ALL_DIRECTIVES_TEST_SED_PATTERN=^\#ALL_DIRECTIVES.*\n
endif
echo '#ALL_DIRECTIVES' | sed -e "s@^#ALL_DIRECTIVES.*\n@@"
echo '#ALL_DIRECTIVES' | sed -e 's@^#ALL_DIRECTIVES.*\n@@'
results still "#ALL_DIRECTIVES" present in output.
perhaps it's not portable? anyway, to delete a matching line such code works
better (and documented):
echo '#ALL_DIRECTIVES' | sed -e "/^#ALL_DIRECTIVES.*/d"
echo '#ALL_DIRECTIVES' | sed -e '/^#ALL_DIRECTIVES.*/d'
Original issue reported on code.google.com by elan.ruu...@gmail.com on 2 Mar 2013 at 11:49
The text was updated successfully, but these errors were encountered:
for 1.5.27.2 such replace needed in install/Makefile, so in vim i typed:
update pattern to remove prefixes
:%s,\^\\#\([A-Z_]*\)$,s/&//,
update pattern to remove whole lines:
:%s,\^\\#\([A-Z_]*\)\.\*\\n,/^\\#\1/d,
and some manual changes in the place where macros being used
Original comment by elan.ruu...@gmail.com on 3 May 2013 at 1:18
Original issue reported on code.google.com by
elan.ruu...@gmail.com
on 2 Mar 2013 at 11:49The text was updated successfully, but these errors were encountered: