[HIPIFY][bash] Make 'find' sorted by extension (#1231)

+ Source files are the first to go. It is needed for in-place hipification in order to avoid errors with included but already hipified header files.
+ More extensions support for batch processing.

[ROCm/clr commit: ba87bcba5c]
Cette révision appartient à :
Evgeny Mankov
2019-07-17 10:28:54 +03:00
révisé par Maneesh Gupta
Parent 61833b948d
révision d7600871ad
2 fichiers modifiés avec 5 ajouts et 2 suppressions
+4 -1
Voir le fichier
@@ -2,4 +2,7 @@
SEARCH_DIRS=$@
find $SEARCH_DIRS -name '*.cpp' -o -name '*.h' -o -name '*.cu' -o -name '*.cuh' -o -name '*.c' -o -name '*.hpp' -o -name '*.inl'
find $SEARCH_DIRS -name '*.cu'
find $SEARCH_DIRS -name '*.cpp' -o -name '*.cxx' -o -name '*.c' -o -name '*.cc'
find $SEARCH_DIRS -name '*.cuh'
find $SEARCH_DIRS -name '*.h' -o -name '*.hpp' -o -name '*.inc' -o -name '*.inl' -o -name '*.hxx' -o -name '*.hdl'
+1 -1
Voir le fichier
@@ -2,4 +2,4 @@
SEARCH_DIR=$1
find $SEARCH_DIR -not -name '*.cpp' -and -not -name '*.h' -and -not -name '*.cu' -and -not -name '*.cuh' -and -not -name '*.c' -and -not -name '*.hpp'
find $SEARCH_DIR -not -name '*.cu' -and -not -name '*.cpp' -and -not -name '*.cxx' -and -not -name '*.c' -and -not -name '*.cc' -and -not -name '*.cuh' -and -not -name '*.h' -and -not -name '*.hpp' -and -not -name '*.inc' -and -not -name '*.inl' -and -not -name '*.hxx' -and -not -name '*.hdl'