Script de màj de carapace
This commit is contained in:
		
							parent
							
								
									80a9f5957a
								
							
						
					
					
						commit
						f3417cc8f2
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								aliases/carapace.elv
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								aliases/carapace.elv
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
edit:add-var updatecarapace~ []{
 | 
			
		||||
  var wd = ~/Documents/OtherGo/github.com/rsteube/carapace-bin
 | 
			
		||||
  var bd = ~/Go/bin
 | 
			
		||||
  cd $wd
 | 
			
		||||
  git pull
 | 
			
		||||
  cd cmd/carapace
 | 
			
		||||
  go generate ./...
 | 
			
		||||
  go build -ldflags="-s -w"
 | 
			
		||||
  if (bool ?(test -f carapace)) {
 | 
			
		||||
    mv -f carapace $bd
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue