From f20401fdba37440d8f827e4cfcb9def6bd6d537b Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 23 Jan 2020 12:33:34 +0000 Subject: project: custom config step: implemented cfgdefs_output_source_lists(). --- project/config/cfgdefs.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'project') 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 -- cgit v1.2.3