summaryrefslogtreecommitdiffstats
path: root/build/common-functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/common-functions.sh')
-rwxr-xr-xbuild/common-functions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/common-functions.sh b/build/common-functions.sh
index e39c4778..04ea2017 100755
--- a/build/common-functions.sh
+++ b/build/common-functions.sh
@@ -90,3 +90,9 @@ retry() {
done
}
+clean_list() {
+ sed -e 's/\s*#.*$//' \
+ -e '/^\s*$/d' ${1} |
+ tr -d '\r' |
+ awk '{ print $1 }'
+}