Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Explicitly include version header where associated macros are used
List of files to update were identified using the following script: ``` # Extract macro specific to Slicer version headers cat CMake/vtkSlicerVersionConfigure.h.in CMake/vtkSlicerVersionConfigureInternal.h.in | ack "^#define Slicer" | cut -d" " -f2 > /tmp/slicer-version-macros.txt # Collect source files directly using at least one of the macro define in the version headers (for macro in $(cat /tmp/slicer-version-macros.txt); do ack $macro -l | ack "\.(cxx|cpp|h|h\.in|txx)$" | ack -v "vtkSlicerVersion"; done) | sort | uniq > /tmp/slicer-file-using-version-macros.txt # Are these files already including the version header ? for file in $(cat /tmp/slicer-file-using-version-macros.txt); do echo "$file"; cat $file | ack vtkSlicerVersionConfigure > /dev/null && echo " yes" || echo " no"; done ``` Co-authored-by: Andras Lasso <lasso@queensu.ca> Co-authored-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
- Loading branch information