1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00
Grid/Hadrons/make_module_list.sh

13 lines
441 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2016-11-28 07:02:15 +00:00
echo 'modules_cc =\' > modules.inc
2019-12-06 11:56:26 +00:00
find Modules -name '*.cc' -type f -print | sort | sed 's/^/ /;$q;s/$/ \\/' >> modules.inc
2016-11-28 07:02:15 +00:00
echo '' >> modules.inc
echo 'modules_hpp =\' >> modules.inc
2019-12-06 11:56:26 +00:00
find Modules -name '*.hpp' -type f -print | sort | sed 's/^/ /;$q;s/$/ \\/' >> modules.inc
2016-11-28 07:02:15 +00:00
echo '' >> modules.inc
2016-12-01 06:43:16 +00:00
rm -f Modules.hpp
2019-12-06 11:56:26 +00:00
for f in `find Modules -name '*.hpp' | sort`; do
2018-09-04 18:22:04 +01:00
echo "#include <Hadrons/${f}>" >> Modules.hpp
2016-12-01 06:43:16 +00:00
done