source tcl file using make which has been generated by make target
My name is ashutosh and i am trying to create an automation using make flow.
I am using a bash shell (/bin/bash)
Below is content of my Makefile
.EXPORT_ALL_VARIABLES:
SHELL := /bin/bash
CWD = $(shell pwd)
DATE = $(shell date +%d%B_%Y)
SCRIPTS = ${CWD}/make_scripts
PATTERN = ************************
WHO = $(shell whoami)
USER = $(shell phone ${WHO} | awk -F: '{print $$2}')
EMAIL = $(shell phone ${WHO} | awk -F: '{print $$4}')
LOC = $(shell phone ${WHO} | awk -F: '{print $$5}')
PREFIX =
SUFFIX =
TAG = TEMP
tag_stub:
@echo "${PATTERN}"
@echo "# TAG STUBS"
@echo "${PATTERN}"
@tclsh ${SCRIPTS}/stub/tag_stub.tcl
when i run make tag_stub it does not execute last 3 lines of the file
tag_stub.tcl
exec dssc setvault <VAULT_PATH> $OUTPUT_DIR/.
exec dssc ci -new -skip -nocom $OUTPUT_STUB
exec dssc tag TEST -replace $OUTPUT_STUB
so, i added these lines in a .cmd file which gets generatd after
tag_stub.tcl is run. But i can not source .cmd file like @source
${CWD}/tag_stub.cmd.
But i can source the same file on stand alone unix shell (/bin/bash)
Can you help please.
Thanks
ashutosh