From 1d652330f7d1686fbc329b8f5590762c90af5150 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 3 Jan 2012 11:36:48 -0500 Subject: Better handle encrypted files --- .mutt/alias.rc.gpg | Bin 3967 -> 0 bytes dm | 15 +++++++++++++-- gpg/.mutt/alias.rc.gpg | Bin 0 -> 3967 bytes gpg/.ssh/id_ecdsa.gpg | Bin 0 -> 1731 bytes gpg/.ssh/id_rsa.gpg | Bin 0 -> 6272 bytes 5 files changed, 13 insertions(+), 2 deletions(-) delete mode 100644 .mutt/alias.rc.gpg create mode 100644 gpg/.mutt/alias.rc.gpg create mode 100644 gpg/.ssh/id_ecdsa.gpg create mode 100644 gpg/.ssh/id_rsa.gpg diff --git a/.mutt/alias.rc.gpg b/.mutt/alias.rc.gpg deleted file mode 100644 index 74b849b..0000000 Binary files a/.mutt/alias.rc.gpg and /dev/null differ diff --git a/dm b/dm index db05ab2..c548bcc 100755 --- a/dm +++ b/dm @@ -20,6 +20,12 @@ LOCAL_FILES = \ .zshrc \ bin/run-mailcheck +# GPG encrypted files +GPG_FILES = \ + .mutt/alias.rc \ + .ssh/id_ecdsa \ + .ssh/id_rsa + # Files that are system independent. # IMPORTANT: directories must have trailing slash GLOBAL_FILES = \ @@ -96,8 +102,11 @@ build/.xmonad/xmonad.hs: FORCE build/.zsh/func/prompt_wunjo_setup: FORCE FORCE: -.mutt/alias.rc: .mutt/alias.rc.gpg - gpg --decrypt $^ > $@ +.mutt/alias.rc: gpg/.mutt/alias.rc.gpg +.ssh/id_%: gpg/.ssh/id_%.gpg +# $(patsubst gpg/,,$(wildcard gpg/.* gpg/*)) +$(GPG_FILES): + gpg --decrypt gpg/$@.gpg > $@ build/%: % $(SUBSTS_FILE) [ -d $(dir $@) ] || mkdir -p $(dir $@) @@ -181,4 +190,6 @@ verify: clean: rm -fr build +clobber: clean + rm -f $(GPG_FILES) .PHONY: build install clean verify merge diff --git a/gpg/.mutt/alias.rc.gpg b/gpg/.mutt/alias.rc.gpg new file mode 100644 index 0000000..74b849b Binary files /dev/null and b/gpg/.mutt/alias.rc.gpg differ diff --git a/gpg/.ssh/id_ecdsa.gpg b/gpg/.ssh/id_ecdsa.gpg new file mode 100644 index 0000000..d35d079 Binary files /dev/null and b/gpg/.ssh/id_ecdsa.gpg differ diff --git a/gpg/.ssh/id_rsa.gpg b/gpg/.ssh/id_rsa.gpg new file mode 100644 index 0000000..91047ab Binary files /dev/null and b/gpg/.ssh/id_rsa.gpg differ -- cgit v1.2.3