|
Lines 295-303
Link Here
|
| 295 |
# Generating tar requires tag matched CRIU_VERSION. |
295 |
# Generating tar requires tag matched CRIU_VERSION. |
| 296 |
# If not found then simply use GIT's describe with |
296 |
# If not found then simply use GIT's describe with |
| 297 |
# "v" prefix stripped. |
297 |
# "v" prefix stripped. |
| 298 |
head-name := $(shell git tag -l v$(CRIU_VERSION)) |
298 |
head-name := $(shell if [ -d ".git" ]; then git tag -l v$(CRIU_VERSION); fi) |
| 299 |
ifeq ($(head-name),) |
299 |
ifeq ($(head-name),) |
| 300 |
head-name := $(shell git describe 2>/dev/null) |
300 |
head-name := $(shell if [ -d ".git" ]; then git describe; fi) |
| 301 |
endif |
301 |
endif |
| 302 |
# If no git tag could describe current commit, |
302 |
# If no git tag could describe current commit, |
| 303 |
# use pre-defined CRIU_VERSION with GITID (if any). |
303 |
# use pre-defined CRIU_VERSION with GITID (if any). |