[SCM] Vim packaging branch, debian, updated. upstream/7.1.ds-325-ge8cfe48

Pierre Habouzit madcoder at debian.org
Sun Mar 30 20:06:56 UTC 2008


The following commit has been merged in the debian branch:
commit e8cfe48847abf7e7715deb8e372a8c31f5aa0892
Author: Pierre Habouzit <madcoder at debian.org>
Date:   Sun Mar 30 22:06:15 2008 +0200

    Fix debian/update-patches.
    
    * so that one can call it through ./debian/update-patches if one likes
    * to parse new versioning scheme.
    
    Signed-off-by: Pierre Habouzit <madcoder at debian.org>

diff --git a/debian/update-patches b/debian/update-patches
index e5f8e68..01051e4 100755
--- a/debian/update-patches
+++ b/debian/update-patches
@@ -5,14 +5,14 @@ host='ftp.vim.org'
 version='7.1'
 dir="pub/vim/patches/$version"
 
-if [ "X$0" != "Xdebian/update-patches" ]; then
+if ! test -d .git -a -f debian/update-patches; then
     echo "This must be run from the top-level of the git repo"
     exit
 fi
 
 git checkout debian
 
-curpatch=$(dpkg-parsechangelog | awk '/^Version:/{print $2}' | sed 's/.*-\([0-9]*\)+.*/\1/')
+curpatch=$(dpkg-parsechangelog | awk '/^Version:/{print $2}' | sed 's/^.*\.\([0-9]*\)\+-[0-9]\+$/\1/')
 curpatch=$(($curpatch + 1))
 newpatch=$(lftp -c "open $host; cd $dir; ls $version.*" | tail -n1 | awk -F. '{print $3}')
 

-- 
Vim packaging



More information about the pkg-vim-maintainers mailing list