Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2021-10-15 03:22:52 +0300
committerMatt Clay <matt@mystile.com>2021-10-15 04:29:32 +0300
commit96372cecea52e8ae4c235e3ad48e8cdee28c7489 (patch)
tree023b1ec2f5141ea855c6a1574a2677b49f1b5ea6 /Makefile
parent2af4d30b9b87c85caf320acd014c2e8d707c276a (diff)
Remove unused variables from Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 0 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index b68ba055d60..74119a28395 100644
--- a/Makefile
+++ b/Makefile
@@ -41,21 +41,9 @@ ifeq ($(findstring error,$(VERSION)), error)
$(error "version_helper failed")
endif
-# Get the branch information from git
-ifneq ($(shell which git),)
-GIT_DATE := $(shell git log -n 1 --format="%ci")
-GIT_HASH := $(shell git log -n 1 --format="%h")
-GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/[-_.\/]//g')
-GITINFO = .$(GIT_HASH).$(GIT_BRANCH)
-else
-GITINFO = ""
-endif
-
ifeq ($(shell echo $(OS) | egrep -c 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
-DATE := $(shell date -j -r $(shell git log -n 1 --format="%ct") +%Y%m%d%H%M)
CPUS ?= $(shell sysctl hw.ncpu|awk '{print $$2}')
else
-DATE := $(shell date --utc --date="$(GIT_DATE)" +%Y%m%d%H%M)
CPUS ?= $(shell nproc)
endif