From bfc3c073acdc71031baf9d1f0835de044ab335e0 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 19 Mar 2013 14:27:59 -0400 Subject: Make awk script generating msmtp aliases in Makefile portable --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5da5268..67baee0 100755 --- a/Makefile +++ b/Makefile @@ -137,7 +137,7 @@ emacsen: build/bin/msmtp/msmtp-default: build/.msmtprc -mkdir -p $(dir $@) - awk '/account/ { print "#!/bin/sh" > "$(dir $@)/msmtp-"$$2 ; print "$(call get-val,MSMTP_PATH) -a " $$2 " \"$$@\"" >> "$(dir $@)/msmtp-"$$2 }' $< + awk '/account/ { FNAME = "$(dir $@)/msmtp-"$$2; print "#!/bin/sh" > FNAME ; print "$(call get-val,MSMTP_PATH) -a " $$2 " \"$$@\"" >> FNAME }' $< chmod 755 build/bin/msmtp/* build/%: % $(SUBSTS_FILE) -- cgit v1.2.3