5

Source command returns error when it strikes conditional staement "ifeq"

view full story
linux-howto

http://www.unix.com – Hello All, I am running source command on my project configuration file app.cfg which has conditional statements with make file systax E.g Code: ifeq ($(APP_CMP_DIR),trunk) . When I source this file it throws error: Code: syntax error near unexpected token `$(APP_CMP_DIR),trunk' . All conditional statements are not indented which is prerequisite for make file syntax. I doubt whether we can source files with conditional statements or not. Any alternative way to get configuration variables in shell environment ?? Re (HowTos)