X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/023b179da66cb18b1c2164e365ffb15a3840fe4e..f285db605bb9cc1afa7a164160aa90de1b892619:/.ssh/Makefile 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