Tool/software:
Hi there,
I am using CCS 8.3.1 and want to automatically generate a C header file that is referenced by the last git hash. To do so I use the pre-build step commands from CCS in project properties -> C/C++ Build -> Settings -> Build Steps. The following command works well:
git log --pretty=format:"#ifndef FPC_GIT_H%%n#define FPC_GIT_H%%nstatic const char GIT_COMMIT_HASH_LONG[] = \"%%H\"" -1 > ../Source_Code/FPC_files/include/FPC_Git.h
In contrast to the windows command prompt I needed to insert double percentages and backslahes to avoid the ignorance of some special characters. But now I want to add a semicolon to end the line in the C header. I tried '/;' ';;' '\;" but nothing has worked so far. The semicolon will always be ignored or does other strange things.
Is there a way to keep a semicolon here as it is?
Thanks for any help!
Kind regards,
Kevin