summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
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