Commit 48919f6b80e09d2f12a1ffec33c8f15ab2b4f864

Thomas de Grivel 2023-02-01T10:40:02

update_sources

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/config.subr b/config.subr
index 651f280..ff5a421 100644
--- a/config.subr
+++ b/config.subr
@@ -118,6 +118,13 @@ require_pkg_config() {
     fi
 }
 
+sources() {
+    echo "$1 = \\
+$(echo "$2" | sed -e 's/^\(.*\)$/	\1 \\\\/')
+" >> ${SOURCES_MK}
+    echo "$1='$(echo "$2" | tr '\n' ' ')'" >> ${SOURCES_SH}
+}
+
 update_config_h() {
     echo "#endif" >> "${CONFIG_H}"
     if ! cmp "${CONFIG_H}" config.h >/dev/null 2>&1; then