You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ -d${eessi_version}/software/${os}/${cpu_arch_subdir}/.lmod ];then
50
58
# include Lmod cache and configuration file (lmodrc.lua),
51
59
# skip whiteout files and backup copies of Lmod cache (spiderT.old.*)
52
-
find ${eessi_version}/software/${os}/${cpu_arch_subdir}/.lmod -type f | egrep -v '/\.wh\.|spiderT.old'>>${files_list}
60
+
find ${eessi_version}/software/${os}/${cpu_arch_subdir}/.lmod -type f | egrep -v "${REMOVED_FILES_PATTERN}|spiderT.old' >> ${files_list}
53
61
fi
54
62
55
63
# include scripts that were copied by install_scripts.sh, which we want to ship in EESSI repository
56
64
if [ -d ${eessi_version}/scripts ]; then
57
-
find ${eessi_version}/scripts -type f | grep -v '/\.wh\.'>>${files_list}
65
+
find ${eessi_version}/scripts -type f | grep -v "${REMOVED_FILES_PATTERN}" >> ${files_list}
58
66
fi
59
67
60
68
# also include init, which is also copied by install_scripts.sh
61
69
if [ -d ${eessi_version}/init ]; then
62
-
find ${eessi_version}/init -type f | grep -v '/\.wh\.'>>${files_list}
70
+
find ${eessi_version}/init -type f | grep -v "${REMOVED_FILES_PATTERN}" >> ${files_list}
63
71
fi
64
72
65
73
# consider both CPU-only and accelerator subdirectories
66
74
for subdir in ${cpu_arch_subdir}${cpu_arch_subdir}/accel/${accel_subdir}; do
67
75
68
76
if [ -d ${eessi_version}/software/${os}/${subdir}/modules ]; then
69
77
# module files
70
-
find ${eessi_version}/software/${os}/${subdir}/modules -type f | grep -v '/\.wh\.'>>${files_list}||true# Make sure we don't exit because of set -e if grep doesn't return a match
78
+
find ${eessi_version}/software/${os}/${subdir}/modules -type f | grep -v "${REMOVED_FILES_PATTERN}" >> ${files_list} || true # Make sure we don't exit because of set -e if grep doesn't return a match
71
79
# module symlinks
72
-
find ${eessi_version}/software/${os}/${subdir}/modules -type l | grep -v '/\.wh\.'>>${files_list}||true# Make sure we don't exit because of set -e if grep doesn't return a match
80
+
find ${eessi_version}/software/${os}/${subdir}/modules -type l | grep -v "${REMOVED_FILES_PATTERN}" >> ${files_list} || true # Make sure we don't exit because of set -e if grep doesn't return a match
73
81
# module files and symlinks
74
82
find ${eessi_version}/software/${os}/${subdir}/modules/all -type f -o -type l \
75
-
| grep -v '/\.wh\.'| grep -v '/\.modulerc\.lua'| sed -e 's/.lua$//'| sed -e 's@.*/modules/all/@@g'| sort -u \
83
+
| grep -v "${REMOVED_FILES_PATTERN}" | grep -v '/\.modulerc\.lua' | sed -e 's/.lua$//' | sed -e 's@.*/modules/all/@@g' | sort -u \
76
84
>> ${module_files_list}
77
85
fi
78
86
@@ -86,7 +94,7 @@ for subdir in ${cpu_arch_subdir} ${cpu_arch_subdir}/accel/${accel_subdir}; do
86
94
for package_version in $(cat ${module_files_list}); do
87
95
echo "handling ${package_version}"
88
96
ls -d ${eessi_version}/software/${os}/${subdir}/software/${package_version}\
89
-
| grep -v '/\.wh\.'>>${files_list}||true# Make sure we don't exit because of set -e if grep doesn't return a match
97
+
| grep -v "${REMOVED_FILES_PATTERN}" >> ${files_list} || true # Make sure we don't exit because of set -e if grep doesn't return a match
0 commit comments