From 9d2110c02a5b93d60960f2ade8e5773bd695852e Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Thu, 28 Jan 2010 20:33:41 +0000 Subject: [PATCH] - update cvs checkout before doing anything, reset release --- vim-update.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim-update.sh b/vim-update.sh index 139ff780..0cf461ee 100755 --- a/vim-update.sh +++ b/vim-update.sh @@ -10,6 +10,8 @@ ORIGPL=`grep "define patchlevel" vim.spec | cut -d ' ' -f 3` #ORIGPL=350 PL=$ORIGPL +cvs up -dAP + while true; do PL=$((PL+1)) PNAME="$MAJORVERSION.$PL" @@ -31,6 +33,7 @@ while true; do sed -i -e "/patch$((PL-1)) -p0/a%patch$PL -p0" $SPEC fi done +sed -i -e "/Release: /cRelease: 1%{dist}" $SPEC sed -i -e "s/define patchlevel $ORIGPL/define patchlevel $PL/" $SPEC sed -i -e "/\%changelog/a$CHLOG.$PL-1\n- patchlevel $PL\n" $SPEC wget ftp://ftp.vim.org/pub/vim/patches/$MAJORVERSION/README -O README.patches