mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 21:16:26 +01:00 
			
		
		
		
	Set VERSION from git once, in a variable (#1447)
This commit is contained in:
		
							parent
							
								
									a78a0266c4
								
							
						
					
					
						commit
						410af6971b
					
				
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@ -14,7 +14,9 @@ JAVASCRIPTS :=
 | 
				
			|||||||
GOFLAGS := -i -v
 | 
					GOFLAGS := -i -v
 | 
				
			||||||
EXTRA_GOFLAGS ?=
 | 
					EXTRA_GOFLAGS ?=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')" -X "main.Tags=$(TAGS)"
 | 
					VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LDFLAGS := -X "main.Version=$(VERSION)" -X "main.Tags=$(TAGS)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell go list ./... | grep -v /vendor/))
 | 
					PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell go list ./... | grep -v /vendor/))
 | 
				
			||||||
SOURCES ?= $(shell find . -name "*.go" -type f)
 | 
					SOURCES ?= $(shell find . -name "*.go" -type f)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user