This centralizes the OSX mktemp solution. Change-Id: Iaab18450146b649245b36865bedc5d7b50d1aa07
		
			
				
	
	
		
			23 lines
		
	
	
		
			514 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			514 B
		
	
	
	
		
			Python
		
	
	
	
	
	
load('//tools/bzl:genrule2.bzl', 'genrule2')
 | 
						|
 | 
						|
CORE = [
 | 
						|
  'commit-message-length-validator',
 | 
						|
  'download-commands',
 | 
						|
  'hooks',
 | 
						|
  'replication',
 | 
						|
  'reviewnotes',
 | 
						|
  'singleusergroup'
 | 
						|
]
 | 
						|
 | 
						|
genrule2(
 | 
						|
  name = 'core',
 | 
						|
  srcs = ['//plugins/%s:%s_deploy.jar' % (n, n) for n in CORE],
 | 
						|
  cmd = 'mkdir -p $$TMP/WEB-INF/plugins;' +
 | 
						|
    'for s in $(SRCS) ; do ' +
 | 
						|
    'ln -s $$ROOT/$$s $$TMP/WEB-INF/plugins;done;' +
 | 
						|
    'cd $$TMP;' +
 | 
						|
    'zip -qr $$ROOT/$@ .',
 | 
						|
  outs = [ 'core.zip' ],
 | 
						|
  visibility = ['//visibility:public'],
 | 
						|
)
 |