Package: caspar Severity: normal Tag: upstream
Hi Maarten, On Thu, Aug 25, 2016 at 12:11:31PM +0200, Maarten Horden wrote: > On 08/23/2016 05:17 PM, Maarten Horden wrote: > > > > Er zit een bug in je documentatie van caspar (gekopieerd van > > http://mdcc.cx/pub/caspar/caspar-latest/doc/caspar.html): > > > > /* > > Combining the csp_LOAD target with multiple hosts; building files remotely > > You'll have to loop over csp_UHOSTS to execute load-command. Here's an > > example doing some preprocessing on the remote hosts too. > > > > csp_DIR = /etc/ssh/ > > csp_UHOSTS = [email protected] [email protected] > > csp_LOAD = sshd_config-load > > sshd_config-load = ssh $1 "cd $(csp_DIR); \ > > m4 sshd_config.m4 >sshd_config && \ > > PATH=$$PATH:/sbin /etc/init.d/ssh restart" > > include caspar/mk/caspar.mk > > Bovenstaand voorbeeld met $ssh werkt *niet*, onderstaand voorbeeld werkt > *wel*: > > > (Alternatively, you could explicitly specify the loop over the hosts: > > > > csp_DIR = /etc/ssh/ > > sshd_config-load: > > for suh in $(csp_UHOSTS); do \ > > ssh $$suh "cd $(csp_DIR); \ > > m4 sshd_config.m4 > sshd_config && \ > > PATH=$$PATH:/sbin /etc/init.d/ssh restart"; \ > > done > > ). > > */ > > Zoals bijvoorbeeld te zien is in: > ... evj shared/usr/local/share/request-tracker4/po/Makefile> Excellent example; thanks. Will get fixed, RSN. Bye, Joost

