montnaro@sprite.steinmetz (Skip Montanaro) (05/23/87)
I recently began fiddling around with rdist (on Sun UNIX 3.2). I want to have a command (like make) execute after ALL the files have been copied to the remote host. According to the BUGS section of the rdist man page, there is no easy way to do it. I came up with the following kluge: 1. Create a simple makefile with the following target description: dist : rm -f markerfile rdist touch markerfile rdist 2. Add the following special command to the distfile: special markerfile "some command, like a local make goes here" ; 3. Execute make. This seems to work okay, but is there some cleaner way around the problem? As far as I can see, there's no foolproof way to trigger the special command on one of the actual files getting distributed, since you don't know if it changed. Any ideas? Thanks, -- Skip| ARPA: montanaro@ge-crd.arpa Montanaro| UUCP: montanaro@desdemona.steinmetz.ge.com (518)387-7312| GE DECnet: advax::"montanaro@desdemona.steinmetz.ge.com"