bash - Sourcing a bashfile before running a command -


suppose have following file demo.env:

export value="abcd" 

how can make works mafile rule?

bash -c "source demo.env; echo $${value}" 

apparently 1 way is:

bash -c "source demo.env; echo \${value}" 

and in makefile rule:

echo:     bash -c "source demo.env; echo \$${value}" 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -