Bug 580279 - VERSION grep in agent/Makefile.inc need update for vxWorks
Summary: VERSION grep in agent/Makefile.inc need update for vxWorks
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-27 22:49 EDT by yuan bian CLA
Modified: 2022-07-06 00:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yuan bian CLA 2022-06-27 22:49:40 EDT
Currently, for vxworks, tcf-agent.spec is not used and will be removed due to our ship strategy. Then, bellow statement in agent/Makefile.inc will result in a warning during project build:
'grep: tcf-c-core/agent/tcf/main/tcf-agent.spec: No such file or directory'

agent/Makefile.inc:
...
ifeq ($(OPSYS),MinGW)
  VERSION := 1.7.0
else
  VERSION := $(shell grep "%define version " $(TCF_AGENT_DIR)/tcf/main/tcf-agent.spec | sed -e "s/%define version //")
endif
...


So can you change the VERSION definition logic(VERSION here is not used in vxWorks) for vxworks or at least add a check for the existence of tcf-agent.spec before 'grep' statement?

Thanks.
Comment 1 yuan bian CLA 2022-07-03 22:59:59 EDT
any update?
Comment 2 Eugene Tarassov CLA 2022-07-06 00:19:12 EDT
I have added a check for the existence of tcf-agent.spec.

Fixed.