vim-update.sh: apply changes master->rawhide

This commit is contained in:
Zdenek Dohnal 2021-02-04 09:20:33 +01:00
parent dd8e228177
commit 1481314118
2 changed files with 11 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
debug="" debug=""
#debug="echo " #debug="echo "
branches=( "master" "f33" "f32" ) branches=( "rawhide" "f33" "f32" )
releases=( "fc34" "fc33" "fc32" ) releases=( "fc34" "fc33" "fc32" )
regexps=( "fc34" "\|fc33" "\|fc32" ) regexps=( "fc34" "\|fc33" "\|fc32" )
bodhi_enabled=( "0" "1" "1" ) bodhi_enabled=( "0" "1" "1" )
@ -74,8 +74,8 @@ mv dist/vim-${UPSTREAMMAJOR}.tar.bz2 dist/vim-${UPSTREAMMAJOR}-${LASTPLFILLED}.t
popd popd
cp -f vim-upstream/dist/vim-${UPSTREAMMAJOR}-${LASTPLFILLED}.tar.bz2 . cp -f vim-upstream/dist/vim-${UPSTREAMMAJOR}-${LASTPLFILLED}.tar.bz2 .
#wget https://raw.githubusercontent.com/ignatenkobrain/vim-spec-plugin/master/ftplugin/spec.vim -O ftplugin-spec.vim #wget https://raw.githubusercontent.com/ignatenkobrain/vim-spec-plugin/rawhide/ftplugin/spec.vim -O ftplugin-spec.vim
#wget https://raw.githubusercontent.com/ignatenkobrain/vim-spec-plugin/master/syntax/spec.vim -O syntax-spec.vim #wget https://raw.githubusercontent.com/ignatenkobrain/vim-spec-plugin/rawhide/syntax/spec.vim -O syntax-spec.vim
if [ $CHANGES -ne 0 ]; then if [ $CHANGES -ne 0 ]; then
CHLOG="* $DATE $PACKAGER -$EPOCH:$UPSTREAMMAJOR" CHLOG="* $DATE $PACKAGER -$EPOCH:$UPSTREAMMAJOR"
$debug sed -i -e "/Release: /cRelease: 1%{?dist}" $SPEC $debug sed -i -e "/Release: /cRelease: 1%{?dist}" $SPEC
@ -166,8 +166,8 @@ if [ $CHANGES -ne 0 ]; then
if [ "$testing_update" == "" ] && [ $done_build -eq 1 ]; then if [ "$testing_update" == "" ] && [ $done_build -eq 1 ]; then
$debug fedpkg build $debug fedpkg build
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
# if branch isn't master or branch is enabled in bodhi, create update # if branch isn't rawhide or branch is enabled in bodhi, create update
if [ $branch != "master" ] || [ ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then if [ $branch != "rawhide" ] || [ ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then
$debug bodhi updates new --user zdohnal --type enhancement --notes "The newest upstream commit" --request testing --autotime --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1} $debug bodhi updates new --user zdohnal --type enhancement --notes "The newest upstream commit" --request testing --autotime --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1}
fi fi
else else
@ -194,7 +194,7 @@ if [ $CHANGES -ne 0 ]; then
#fi #fi
fi fi
#go back to master #go back to rawhide
$debug fedpkg switch-branch master $debug fedpkg switch-branch rawhide
exit 0 exit 0

View File

@ -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 and MIT License: Vim and MIT
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
Source1: vim.sh Source1: vim.sh
@ -827,6 +827,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
%config(noreplace) %{_sysconfdir}/profile.d/vim-default-editor.* %config(noreplace) %{_sysconfdir}/profile.d/vim-default-editor.*
%changelog %changelog
* Thu Feb 04 2021 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.2.2451-2
- vim-update.sh: apply changes master->rawhide
* Tue Feb 02 2021 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.2.2451-1 * Tue Feb 02 2021 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.2.2451-1
- patchlevel 2451 - patchlevel 2451