Created
July 23, 2016 16:02
-
-
Save Wintus/a7573dee8de90a3ce220a87478817313 to your computer and use it in GitHub Desktop.
Make config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SSH now supports
Include
clause of config fragments.ref. https://qiita.com/masa0x80/items/ecb692ad93f7d06a07b0