Skip to content

Instantly share code, notes, and snippets.

@Wintus
Created July 23, 2016 16:02
Show Gist options
  • Save Wintus/a7573dee8de90a3ce220a87478817313 to your computer and use it in GitHub Desktop.
Save Wintus/a7573dee8de90a3ce220a87478817313 to your computer and use it in GitHub Desktop.
Make config file
Configs = $(wildcard conf.d/*.conf)
config: $(Configs)
echo '# ssh' | \
cat - $^ > $@
[ -e px ] && $(call SHPX, $@)
define SHPX
perl -p -i -e 's/^# sh\(.*\)/join "\n", px{$1}/e' $1
endef
@Wintus
Copy link
Author

Wintus commented Jul 23, 2016

@Wintus
Copy link
Author

Wintus commented Nov 21, 2023

SSH now supports Include clause of config fragments.

ref. https://qiita.com/masa0x80/items/ecb692ad93f7d06a07b0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment