begin to differentiate local and remote object code generation
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								c77a6c5901
							
						
					
				
			
			
				commit
				
					
						1af34c74b8
					
				
			
		
					 3 changed files with 5 additions and 2 deletions
				
			
		|  | @ -46,6 +46,8 @@ __cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname" | |||
| : ${__cdist_name_conf_dir:=conf} | ||||
| : ${__cdist_name_explorer:=explorer} | ||||
| : ${__cdist_name_gencode:=gencode} | ||||
| : ${__cdist_name_gencode_local:=$__cdist_name_gencode-local} | ||||
| : ${__cdist_name_gencode_remote:=$__cdist_name_gencode-remote} | ||||
| : ${__cdist_name_global:=global} | ||||
| : ${__cdist_name_host:=host} | ||||
| : ${__cdist_name_init:=init} | ||||
|  |  | |||
|  | @ -23,11 +23,12 @@ | |||
| # | ||||
| 
 | ||||
| . cdist-config | ||||
| [ $# -eq 2 ] || __cdist_usage "<target host>" "<object>" | ||||
| [ $# -eq 2 ] || __cdist_usage "<target host>" "<object>" "<remote|local>" | ||||
| set -eu | ||||
| 
 | ||||
| __cdist_target_host="$1"; shift | ||||
| __cdist_object="$1"; shift | ||||
| __cdist_gencode_type="$1"; shift | ||||
| 
 | ||||
| __cdist_object_dir="$(__cdist_object_dir "$__cdist_object")" | ||||
| __cdist_type="$(__cdist_type_from_object "$__cdist_object")" | ||||
|  |  | |||
|  | @ -31,7 +31,7 @@ __cdist_object_list "$__cdist_out_object_dir" > "$__cdist_tmp_file" | |||
| 
 | ||||
| while read object; do | ||||
|    code="$(__cdist_object_code "$object")" | ||||
|    echo "Generating  code  for $object ..." | ||||
|    echo "Generating local code for $object ..." | ||||
| 
 | ||||
|    cdist-object-gencode "$__cdist_target_host" "$object" > "${code}" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue