X-Git-Url: https://git.madduck.net/etc/ssh.git/blobdiff_plain/9d4b628328aa275e7631465e4e548d921df75f4f..f285db605bb9cc1afa7a164160aa90de1b892619:/.ssh/Makefile?ds=sidebyside diff --git a/.ssh/Makefile b/.ssh/Makefile index 6e83244..017a6bb 100644 --- a/.ssh/Makefile +++ b/.ssh/Makefile @@ -1,16 +1,27 @@ -all: known_hosts authorized_keys +all: known_hosts authorized_keys config .PHONY: all known_hosts: $(wildcard known_hosts.d/*) touch $@ for f in $^; do \ - echo "# from $$f:"; \ + echo; \ + echo "### from $$f:"; \ cat $$f; \ done >> $@ authorized_keys: $(wildcard authorized_keys.d/*) touch $@ for f in $^; do \ - echo "# from $$f:"; \ + echo; \ + 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