ENH: allow -pkg|-package option for wmakePrintBuild

- improves the chances of tracking who built OpenFOAM, where, etc

ENH: make it easier to parse version/build from OpenFOAM -help output

- For example,
    foamListTimes -help | awk '{ if (/^Using:/) print $2}'
    foamListTimes -help | awk '{ if (/^Build:/) print $2}'
This commit is contained in:
Mark Olesen
2011-01-28 13:52:36 +01:00
parent d93f3195e6
commit a2fe746899
3 changed files with 81 additions and 26 deletions

View File

@ -4,8 +4,8 @@
# update version strings in C++ file and in $WM_PROJECT_DIR/.build file
#
Cvertoo = \
sed -e 's/VERSION_STRING/$(shell wmakePrintBuild -major)/' \
-e 's/BUILD_STRING/$(shell wmakePrintBuild -update)/' \
sed -e 's!VERSION_STRING!$(shell wmakePrintBuild -major)!' \
-e 's!BUILD_STRING!$(shell wmakePrintBuild -update)!' \
$$SOURCE > $*.C; \
$(CC) $(c++FLAGS) -c $*.C -o $@