From: martin f. krafft Date: Thu, 15 May 2008 10:46:16 +0000 (+0100) Subject: generate config to remove unsupported stuff X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/f285db605bb9cc1afa7a164160aa90de1b892619?ds=inline generate config to remove unsupported stuff --- 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