summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-23 12:33:34 +0000
committermidipix <writeonce@midipix.org>2020-01-24 21:14:10 +0000
commitf20401fdba37440d8f827e4cfcb9def6bd6d537b (patch)
tree6f3c059189b5e8c8c77533c30f23fcc8d1e49175 /project/config
parent401d720afd9905960b4316dda4efa14e7381b51b (diff)
downloadbautomake-f20401fdba37440d8f827e4cfcb9def6bd6d537b.tar.bz2
bautomake-f20401fdba37440d8f827e4cfcb9def6bd6d537b.tar.xz
project: custom config step: implemented cfgdefs_output_source_lists().
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh51
1 files changed, 51 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 4f07150..4e3cf18 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -68,11 +68,62 @@ cfgdefs_output_custom_defs()
}
+cfgdefs_output_source_lists()
+{
+ # raw m4 macros
+ printf '\n\nAUTOMAKE_M4_SOURCE_FILES = \\\n' \
+ >> "$mb_pwd/cfgdefs.mk"
+
+ printf '\t$(SOURCE_DIR)/%s \\\n' \
+ $(grep '/m4/' "$mb_source_dir"/MANIFEST.RAWBALL \
+ | grep -v -e '/acdir/' -e '/internal/' \
+ | grep -v -e '/amversion.in' \
+ | cut -d' ' -f3) \
+ >> "$mb_pwd/cfgdefs.mk"
+
+
+ # raw am snippets
+ printf '\n\nAUTOMAKE_AM_SOURCE_FILES = \\\n' \
+ >> "$mb_pwd/cfgdefs.mk"
+
+ printf '\t$(SOURCE_DIR)/%s \\\n' \
+ $(grep '/am/' "$mb_source_dir"/MANIFEST.RAWBALL \
+ | cut -d' ' -f3) \
+ >> "$mb_pwd/cfgdefs.mk"
+
+
+ # raw perl scripts
+ printf '\n\nAUTOMAKE_PM_SOURCE_FILES = \\\n' \
+ >> "$mb_pwd/cfgdefs.mk"
+
+ printf '\t$(SOURCE_DIR)/%s \\\n' \
+ $(grep '/Automake/' "$mb_source_dir"/MANIFEST.RAWBALL \
+ | cut -d' ' -f3) \
+ >> "$mb_pwd/cfgdefs.mk"
+
+
+ # raw automake scripts
+ printf '\n\nAUTOMAKE_LIB_SOURCE_FILES = \\\n' \
+ >> "$mb_pwd/cfgdefs.mk"
+
+ printf '\t$(SOURCE_DIR)/%s \\\n' \
+ $(grep '/lib/' "$mb_source_dir"/MANIFEST.RAWBALL \
+ | grep -v -e '/am/' -e '/Automake/' \
+ | cut -d' ' -f3) \
+ >> "$mb_pwd/cfgdefs.mk"
+
+ printf '\n\n' >> "$mb_pwd/cfgdefs.mk"
+}
+
+
# automake version info
cfgdefs_detect_automake_version
# cfgdefs.in --> cfgdefs.mk
cfgdefs_output_custom_defs
+# create a list of raw files to install
+cfgdefs_output_source_lists
+
# all done
return 0