From 2230752a67f13410258bf0b7024a760fe9fd1295 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sat, 3 Jan 2015 14:53:30 +0100 Subject: [PATCH] add support for having a config.local file --- .ssh/.gitignore | 1 + .ssh/Makefile | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.ssh/.gitignore b/.ssh/.gitignore index 69f3f1c..31eb6b7 100644 --- a/.ssh/.gitignore +++ b/.ssh/.gitignore @@ -3,3 +3,4 @@ /authorized_keys /known_hosts /config +/config.local diff --git a/.ssh/Makefile b/.ssh/Makefile index 0e26cbb..cfb923b 100644 --- a/.ssh/Makefile +++ b/.ssh/Makefile @@ -18,9 +18,15 @@ authorized_keys: $(wildcard authorized_keys.d/*) echo; \ done > $@ +ifeq ($(strip $(wildcard config.local)),) +LOCAL_CONFIG=/dev/null +else +LOCAL_CONFIG=config.local +endif + SSH_VERSION = $(shell ssh -V 2>&1) -config: config.in - cp $< $@ +config: $(LOCAL_CONFIG) config.in + cat $^ > $@ case "$(SSH_VERSION)" in \ (OpenSSH_6.[0123]*) \ sed -ri -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \ -- 2.39.2