Skip to content

Commit

Permalink
Add script remove_kokkos_subpackages_from_trilinos_packages.sh (trili…
Browse files Browse the repository at this point in the history
…nos#11545)

This makes it a little more robust and reproducable to refactor the packages
downstream from Kokkos.  This script can also be used by other TriBITS and
non-TriBITS CMake packages/projects that depend on Kokkos to adjust to this
refactoring.
  • Loading branch information
bartlettroscoe committed Apr 19, 2023
1 parent 29fdcd5 commit 2575bbe
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash
#
# Run this script from the Trilinos/packages/ subdir to remove the usage of Kokkos subpackages.
#
# Usage:
#
# $ cd Trilinos/packages/
# $ ../commonTools/refactoring/refactors/remove_kokkos_subpackages_from_trilinos_packages.sh
#

pkgsToRefactor=$(ls | grep -v "kokkos$" | grep -v framework | grep -v TrilinosInstallTests | grep -v new_package)

for pkg in ${pkgsToRefactor} ; do

if [[ -d ${pkg} ]] ; then

echo
echo "***"
echo "*** Refactoring ${pkg}"
echo "***"
echo

cd ${pkg}

time ../../commonTools/refactoring/refactors/remove_kokkos_subpackages_r.sh

cd ..

fi

done

0 comments on commit 2575bbe

Please sign in to comment.