4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 scriptdir="$(dirname $(readlink -f ${BASH_SOURCE[0]}))"
20 source $scriptdir/lib.sh
22 _get_projects_all() { repo list -g torpm -n | sort; }
26 repo info -l $i | grep "^Mount path: " | awk '{print $3}' | tr '\n' ' '
37 CENTOS_SOURCES="$(_read_build_config rpm centos_sources)" \
38 $RPM_BUILDER/makebuild.py \
39 -m $RPM_BUILDER_SETTINGS \
44 # build one or all projects
48 projects_to_build="$MANIFEST_PATH $(_get_project_dirs $(_get_projects_all))"
49 _run_cmd $LIBDIR/prepare_manifest.sh
53 build_rpms $rpmwork $projects_to_build
54 _add_rpms_to_repos_from_workdir $rpmwork