From ed546af4311b1add41d361576f637bc3284cb17a Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 25 Aug 2011 07:40:38 -0400 Subject: Call get-val from get-sed-args --- dm | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'dm') diff --git a/dm b/dm index bac39ee..3baa71f 100755 --- a/dm +++ b/dm @@ -53,28 +53,12 @@ GLOBAL_FILES = \ bin/ \ get-val = $(shell awk '{if (match($$0, /$1/)) { print $$2 } }' $(SUBSTS_FILE)) -get-sed-args = $(foreach var,$($(1)),-e 's|$(var)|$($(var))|g') +get-sed-args = $(foreach var,$($(1)),-e 's|$(var)|$(call get-val,$(var))|g') CURRENT_BRANCH = $(shell git branch --no-color | colrm 1 2) SHA256 = $(call get-val,SHA256) -LOCAL_PASS = $(call get-val,LOCAL_PASS) -GMAIL_PASS = $(call get-val,GMAIL_PASS) -QUEENSU_PASS = $(call get-val,QUEENSU_PASS) -PM_EMAIL = $(call get-val,PM_EMAIL) -SCREENLAYOUT = $(call get-val,SCREENLAYOUT) -XMONAD_DZEN_W = $(call get-val,XMONAD_DZEN_W) -XMONAD_DZEN_X = $(call get-val,XMONAD_DZEN_X) -XMONAD_DZEN_Y = $(call get-val,XMONAD_DZEN_Y) -LOCALE = $(call get-val,LOCALE) -SUBSTS_LS = $(call get-val,SUBSTS_LS) -MSMTP_PATH = $(call get-val,MSMTP_PATH) -ZSH_PATH = $(call get-val,ZSH_PATH) -ZSH_HOST_COLOUR = $(call get-val,ZSH_HOST_COLOUR) -SCREEN_HOST_COLOUR = $(call get-val,SCREEN_HOST_COLOUR) -SUBSTS_RM = $(call get-val,SUBSTS_RM) - VARS_.devscripts = MSMTP_PATH VARS_.gitconfig = MSMTP_PATH VARS_.imapfilter/config.lua = LOCAL_PASS PM_EMAIL -- cgit v1.2.3