diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 07:34:13 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-04-01 07:34:13 +0200 |
commit | a6bf0b9a5b83187e8ecb2b0d824e6c8997f7f0a5 (patch) | |
tree | 14463a5217ade12b4e557ccf8e032440d9c538e3 /bin/build-rpm-package | |
parent | ebc7f12b4bc844a4de4818fe2e6fca206544e04f (diff) | |
download | buildscripts-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-x | bin/build-rpm-package | 12 |
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 () { |