From f285db605bb9cc1afa7a164160aa90de1b892619 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 15 May 2008 11:46:16 +0100 Subject: [PATCH 1/1] generate config to remove unsupported stuff --- .ssh/Makefile | 11 ++++++++++- .ssh/{config => config.in} | 0 2 files changed, 10 insertions(+), 1 deletion(-) rename .ssh/{config => config.in} (100%) diff --git a/.ssh/Makefile b/.ssh/Makefile index 34cb23e..017a6bb 100644 --- a/.ssh/Makefile +++ b/.ssh/Makefile @@ -1,4 +1,4 @@ -all: known_hosts authorized_keys +all: known_hosts authorized_keys config .PHONY: all known_hosts: $(wildcard known_hosts.d/*) @@ -16,3 +16,12 @@ authorized_keys: $(wildcard authorized_keys.d/*) echo "### from $$f:"; \ cat $$f; \ done >> $@ + +config: config.in + cp $< $@ + case "$(ssh -V)" in \ + OpenSSH_4.3*) \ + sed -ri -e 's,^.+\.+$$,##UNSUPPORTED##&,' \ + -e 's,^.+\.+$$,##UNSUPPORTED##&,' $@ \ + ;; \ + esac diff --git a/.ssh/config b/.ssh/config.in similarity index 100% rename from .ssh/config rename to .ssh/config.in -- 2.39.5