aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2013-03-19 14:27:59 -0400
committerRyan Kavanagh <rak@debian.org>2013-03-19 14:31:36 -0400
commitbfc3c073acdc71031baf9d1f0835de044ab335e0 (patch)
tree8ffb646c132d01bc6ffe72699f9d14a1be718e0d
parentAdded ubuntu to caslab known hosts (diff)
Make awk script generating msmtp aliases in Makefile portable
-rwxr-xr-xMakefile2
1 files changed, 1 insertions, 1 deletions
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)