summaryrefslogtreecommitdiff
path: root/project/config/cfgdefs.sh
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-24 23:52:50 +0000
committermidipix <writeonce@midipix.org>2020-01-24 23:52:50 +0000
commit5ed84259487fd0fb7c9b32532e0025e4ca371538 (patch)
treee46971e955f5f97293d6939369e8659f734ee02d /project/config/cfgdefs.sh
parent113cc25d9261c971236becd3cc547baf77e9319f (diff)
downloadbautomake-5ed84259487fd0fb7c9b32532e0025e4ca371538.tar.bz2
bautomake-5ed84259487fd0fb7c9b32532e0025e4ca371538.tar.xz
project: cfgdefs.sh: refactor references to the rawball manifest file.
Diffstat (limited to 'project/config/cfgdefs.sh')
-rw-r--r--project/config/cfgdefs.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 4e3cf18..9f327fa 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -12,6 +12,7 @@
# finally, cfgdefs.sh may update the contents of the
# config-time generated cfgdefs.mk.
+mb_manifest=MANIFEST.rawball
for arg ; do
case "$arg" in
@@ -75,7 +76,7 @@ cfgdefs_output_source_lists()
>> "$mb_pwd/cfgdefs.mk"
printf '\t$(SOURCE_DIR)/%s \\\n' \
- $(grep '/m4/' "$mb_source_dir"/MANIFEST.RAWBALL \
+ $(grep '/m4/' "$mb_source_dir/$mb_manifest" \
| grep -v -e '/acdir/' -e '/internal/' \
| grep -v -e '/amversion.in' \
| cut -d' ' -f3) \
@@ -86,9 +87,9 @@ cfgdefs_output_source_lists()
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) \
+ printf '\t$(SOURCE_DIR)/%s \\\n' \
+ $(grep '/am/' "$mb_source_dir/$mb_manifest" \
+ | cut -d' ' -f3) \
>> "$mb_pwd/cfgdefs.mk"
@@ -97,7 +98,7 @@ cfgdefs_output_source_lists()
>> "$mb_pwd/cfgdefs.mk"
printf '\t$(SOURCE_DIR)/%s \\\n' \
- $(grep '/Automake/' "$mb_source_dir"/MANIFEST.RAWBALL \
+ $(grep '/Automake/' "$mb_source_dir/$mb_manifest" \
| cut -d' ' -f3) \
>> "$mb_pwd/cfgdefs.mk"
@@ -107,7 +108,7 @@ cfgdefs_output_source_lists()
>> "$mb_pwd/cfgdefs.mk"
printf '\t$(SOURCE_DIR)/%s \\\n' \
- $(grep '/lib/' "$mb_source_dir"/MANIFEST.RAWBALL \
+ $(grep '/lib/' "$mb_source_dir/$mb_manifest" \
| grep -v -e '/am/' -e '/Automake/' \
| cut -d' ' -f3) \
>> "$mb_pwd/cfgdefs.mk"