X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/7aeb7fb68e067771cf36d323187821b4fb2f8bf0..f285db605bb9cc1afa7a164160aa90de1b892619:/.ssh/Makefile?ds=sidebyside 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