It looks like the basic idea works, but I was using slashes as the
delimiter for the sed command that puts the post url into the archived
post. Since the url contains slashes, that failed.
There was another bug: I had to change the single quotes around the sed command to double quotes so that $url could get expanded -- that required using "\\\\n" instead of "\n" to make a newline.
If you want to follow along, bear in mind that things that look like $(XXXX) are expanded by make. Shell variables look like $XXXX, but to get a dollar sign into the shell portion of the recipe you have to double it -- $ is a make variable -- constant, actually -- that contains '$'.
no subject
If you want to follow along, bear in mind that things that look like $(XXXX) are expanded by make. Shell variables look like $XXXX, but to get a dollar sign into the shell portion of the recipe you have to double it -- $ is a make variable -- constant, actually -- that contains '$'.
The final make recipe is: