I have been trying to do a string replace of .txt filenames within an .properties file using the sed shell command in the SCons' env.Command function. I am currently failing to understand how to append a timestamp to these filenames within this file.
Naively I attempted to use bash variables within the build step as follows:
env.Command('foo.out', 'foo.in', "dateVar=$(date +%F-%k-%M); sed -i \"s/\.txt/\.txt?v=$dateVar/g\" example.properties");
...but that only led to failures as SCons attempted to parse anything with a dollar sign. Does anyone know how I can achieve this append?