I have the following code generated in a Makefile:
${SED} -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
# ${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
Which I want to replace with
# ${SED} -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
So it's simply a matter of commenting out one line,and replacing with the other.
But due to the single quotes and double quotes I can't achieve it.
If some regex expert is willing to take 1-2 minutes to help me out that will be great.
I'm pulling my hairs out here.
Thanks
Makefileconsider fixing the source. If it were to be generated again, you'd need to run a script in order to fix it.