Minor improvement to clone script
This commit is contained in:
parent
7a6ef0584b
commit
d151464362
1 changed files with 6 additions and 2 deletions
|
|
@ -1,12 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
script_location=$( (cd $(dirname $0) && pwd) )
|
||||
|
||||
module=$(basename $script_location)
|
||||
|
||||
mkdir -p rpms
|
||||
pushd rpms 2>&1 >/dev/null
|
||||
|
||||
for pkg in $(grep -B1 --no-group-separator buildorder ../tycho.yaml | grep -v buildorder | sed -e 's/:$//') ; do
|
||||
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 && fedpkg switch-branch f30 && fedpkg switch-branch master && fedpkg switch-branch tycho)
|
||||
(cd $pkg ; fedpkg switch-branch master ; fedpkg switch-branch $module)
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue