fixing merge and push in vim-update.sh
This commit is contained in:
parent
958ce51844
commit
d6afc629bd
@ -71,28 +71,35 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
$debug git add vim.spec README.patches
|
$debug git add vim.spec README.patches
|
||||||
$debug git commit -m "- patchlevel $LASTPL"
|
$debug git commit -m "- patchlevel $LASTPL"
|
||||||
$debug fedpkg mockbuild
|
$debug fedpkg mockbuild
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: fedpkg mockbuild"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
$debug fedpkg push
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
for release in "${releases[@]:(1)}";
|
for release in "${releases[@]:(1)}";
|
||||||
do
|
do
|
||||||
fedpkg push
|
$debug fedpkg switch-branch $release
|
||||||
if [ $? -ne 0 ]; then
|
$debug bash -c "git merge ${releases[@]: $release_index: 1} <<<':x'"
|
||||||
echo "Error: fedpkg push"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fedpkg switch-branch $release
|
|
||||||
git merge "${releases[@]: $release_index: 1} <<<':x'"
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error: git merge ${releases[@]: $release_index: 1}"
|
echo "Error: git merge ${releases[@]: $release_index: 1}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
let "release_index+=1"
|
let "release_index+=1"
|
||||||
fedpkg mockbuild
|
$debug fedpkg mockbuild
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error: fedpkg mockbuild failed"
|
echo "Error: fedpkg mockbuild failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
$debug fedpkg push
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Error: fedpkg push"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
echo "Error: fedpkg push"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#$debug git push
|
#$debug git push
|
||||||
@ -104,3 +111,4 @@ if [ $CHANGES -ne 0 ]; then
|
|||||||
# echo "GIT push failed"
|
# echo "GIT push failed"
|
||||||
#fi
|
#fi
|
||||||
fi
|
fi
|
||||||
|
exit 0
|
||||||
|
5
vim.spec
5
vim.spec
@ -21,7 +21,7 @@ Summary: The VIM editor
|
|||||||
URL: http://www.vim.org/
|
URL: http://www.vim.org/
|
||||||
Name: vim
|
Name: vim
|
||||||
Version: %{baseversion}.%{patchlevel}
|
Version: %{baseversion}.%{patchlevel}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: Vim
|
License: Vim
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
|
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
|
||||||
@ -765,6 +765,9 @@ rm -rf %{buildroot}
|
|||||||
%{_datadir}/icons/locolor/*/apps/*
|
%{_datadir}/icons/locolor/*/apps/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 08 2017 Zdenek Dohnal <zdohnal@redhat.com> - 8.0.1071-2
|
||||||
|
- fixing merge and push in vim-update.sh
|
||||||
|
|
||||||
* Fri Sep 08 2017 Karsten Hopp <karsten@redhat.com> 8.0.1071-1
|
* Fri Sep 08 2017 Karsten Hopp <karsten@redhat.com> 8.0.1071-1
|
||||||
- patchlevel 1071
|
- patchlevel 1071
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user