mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-27 21:11:40 +01:00
* Fix REVSTR for windows OS
git-svn-id: trunk@14076 -
This commit is contained in:
parent
9bd672b3e4
commit
b6d0a93599
@ -348,13 +348,18 @@ CPUSUF=arm
|
|||||||
endif
|
endif
|
||||||
NOCPUDEF=1
|
NOCPUDEF=1
|
||||||
MSGFILE=msg/error$(FPCLANG).msg
|
MSGFILE=msg/error$(FPCLANG).msg
|
||||||
|
SVNVERSION:=$(wildcard $(addsuffix /svnversion$(SRCEXEEXT),$(SEARCHPATH)))
|
||||||
|
ifeq ($(REVSTR),)
|
||||||
|
ifneq ($(SVNVERSION),)
|
||||||
|
REVSTR:=$(shell $(SVNVERSION) -c .)
|
||||||
|
export REVSTR
|
||||||
|
override LOCALOPT+=-dREVINC
|
||||||
|
endif
|
||||||
|
endif
|
||||||
REVINC:=$(wildcard revision.inc)
|
REVINC:=$(wildcard revision.inc)
|
||||||
ifneq ($(REVINC),)
|
ifneq ($(REVINC),)
|
||||||
override LOCALOPT+=-dREVINC
|
|
||||||
ifeq ($(REVSTR),)
|
ifeq ($(REVSTR),)
|
||||||
SVNVERSION:=$(wildcard svnversion$(SRCEXEEXT))
|
override LOCALOPT+=-dREVINC
|
||||||
REVSTR:=$(shell svnversion .)
|
|
||||||
export REVSTR
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
override LOCALOPT+=-d$(CPC_TARGET) -dGDB -dBROWSERLOG
|
override LOCALOPT+=-d$(CPC_TARGET) -dGDB -dBROWSERLOG
|
||||||
@ -3335,7 +3340,16 @@ $(EXENAME) : $(wildcard *.pas) $(wildcard *.inc) msg \
|
|||||||
$(wildcard systems/*.pas) $(wilcard systems/*.inc) \
|
$(wildcard systems/*.pas) $(wilcard systems/*.inc) \
|
||||||
$(wildcard $(CPC_TARGET)/*.pas) $(wildcard $(CPC_TARGET)/*.inc)
|
$(wildcard $(CPC_TARGET)/*.pas) $(wildcard $(CPC_TARGET)/*.inc)
|
||||||
ifneq ($(REVSTR),)
|
ifneq ($(REVSTR),)
|
||||||
|
ifdef USEZIPWRAPPER
|
||||||
|
ifneq ($(ECHOREDIR),echo)
|
||||||
$(ECHOREDIR) "'$(REVSTR)'" > revision.inc
|
$(ECHOREDIR) "'$(REVSTR)'" > revision.inc
|
||||||
|
else
|
||||||
|
$(ECHOREDIR) '$(REVSTR)' > revision.inc
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
$(ECHOREDIR) "'$(REVSTR)'" > revision.inc
|
||||||
|
endif
|
||||||
|
$(COMPILER) version.pas
|
||||||
endif
|
endif
|
||||||
$(COMPILER) pp.pas
|
$(COMPILER) pp.pas
|
||||||
$(EXECPPAS)
|
$(EXECPPAS)
|
||||||
|
|||||||
@ -150,13 +150,22 @@ NOCPUDEF=1
|
|||||||
# Default message file
|
# Default message file
|
||||||
MSGFILE=msg/error$(FPCLANG).msg
|
MSGFILE=msg/error$(FPCLANG).msg
|
||||||
|
|
||||||
|
|
||||||
|
# Automatically update revision.inc if
|
||||||
|
# svnversion executable is available
|
||||||
|
SVNVERSION:=$(wildcard $(addsuffix /svnversion$(SRCEXEEXT),$(SEARCHPATH)))
|
||||||
|
ifeq ($(REVSTR),)
|
||||||
|
ifneq ($(SVNVERSION),)
|
||||||
|
REVSTR:=$(shell $(SVNVERSION) -c .)
|
||||||
|
export REVSTR
|
||||||
|
override LOCALOPT+=-dREVINC
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
REVINC:=$(wildcard revision.inc)
|
REVINC:=$(wildcard revision.inc)
|
||||||
ifneq ($(REVINC),)
|
ifneq ($(REVINC),)
|
||||||
override LOCALOPT+=-dREVINC
|
|
||||||
ifeq ($(REVSTR),)
|
ifeq ($(REVSTR),)
|
||||||
SVNVERSION:=$(wildcard svnversion$(SRCEXEEXT))
|
override LOCALOPT+=-dREVINC
|
||||||
REVSTR:=$(shell svnversion .)
|
|
||||||
export REVSTR
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -373,11 +382,21 @@ regdatarm : arm/armreg.dat
|
|||||||
cd arm && ../utils/mkarmreg$(SRCEXEEXT)
|
cd arm && ../utils/mkarmreg$(SRCEXEEXT)
|
||||||
|
|
||||||
# Make only the compiler
|
# Make only the compiler
|
||||||
|
# ECHOREDIR sometimes does not remove double quotes
|
||||||
$(EXENAME) : $(wildcard *.pas) $(wildcard *.inc) msg \
|
$(EXENAME) : $(wildcard *.pas) $(wildcard *.inc) msg \
|
||||||
$(wildcard systems/*.pas) $(wilcard systems/*.inc) \
|
$(wildcard systems/*.pas) $(wilcard systems/*.inc) \
|
||||||
$(wildcard $(CPC_TARGET)/*.pas) $(wildcard $(CPC_TARGET)/*.inc)
|
$(wildcard $(CPC_TARGET)/*.pas) $(wildcard $(CPC_TARGET)/*.inc)
|
||||||
ifneq ($(REVSTR),)
|
ifneq ($(REVSTR),)
|
||||||
|
ifdef USEZIPWRAPPER
|
||||||
|
ifneq ($(ECHOREDIR),echo)
|
||||||
$(ECHOREDIR) "'$(REVSTR)'" > revision.inc
|
$(ECHOREDIR) "'$(REVSTR)'" > revision.inc
|
||||||
|
else
|
||||||
|
$(ECHOREDIR) '$(REVSTR)' > revision.inc
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
$(ECHOREDIR) "'$(REVSTR)'" > revision.inc
|
||||||
|
endif
|
||||||
|
$(COMPILER) version.pas
|
||||||
endif
|
endif
|
||||||
$(COMPILER) pp.pas
|
$(COMPILER) pp.pas
|
||||||
$(EXECPPAS)
|
$(EXECPPAS)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user