eclipse/clone_rpms.sh
2019-06-11 00:32:54 +01:00

18 lines
439 B
Bash
Executable file

#!/bin/bash
script_location=$( (cd $(dirname $0) && pwd) )
module=$(basename $script_location)
mkdir -p rpms
pushd rpms 2>&1 >/dev/null
rm -f need_branch
for pkg in $(grep -B1 --no-group-separator buildorder ../$module.yaml | grep -v buildorder | sed -e 's/:$//') ; do
if [ ! -d "$pkg" ] ; then
fedpkg clone $pkg
(cd $pkg ; if ! fedpkg switch-branch $module ; then echo $pkg >> ../need_branch ; fi)
fi
done
popd 2>&1 >/dev/null