summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-04-01 07:34:13 +0200
committerMihai Moldovan <ionic@ionic.de>2015-04-01 07:34:13 +0200
commita6bf0b9a5b83187e8ecb2b0d824e6c8997f7f0a5 (patch)
tree14463a5217ade12b4e557ccf8e032440d9c538e3 /bin/build-rpm-package
parentebc7f12b4bc844a4de4818fe2e6fca206544e04f (diff)
downloadbuildscripts-a6bf0b9a5b83187e8ecb2b0d824e6c8997f7f0a5.tar.gz
buildscripts-a6bf0b9a5b83187e8ecb2b0d824e6c8997f7f0a5.tar.bz2
buildscripts-a6bf0b9a5b83187e8ecb2b0d824e6c8997f7f0a5.zip
bin/build-rpm-package: add some boilerplate code for reading in config files.
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 10fc0fb..f088bb9 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -301,6 +301,18 @@ create_mock_config () { # MOCK_BASE CUSTOM_REPO COMPONENT TARGET
echo "Error: creating mock temporary config file failed. Aborting." >&2
exit -1
fi
+
+ # Fetch the requested lines from ${CUSTOM_REPO} and store them in an array.
+ typeset -a extra_repo
+ typeset -i FETCH_SECTION=0
+ while read line; do
+
+ done < "/etc/mock/${CUSTOM_REPO}"
+
+ typeset -i REPO_START=0
+ while read line; do
+
+ done < "/etc/mock/${MOCK_BASE}"
}
get_extra_repository () {