[arch-commits] CVS update of arch/build/base/vi (PKGBUILD fetch_patches.sh)

Tobias Kieslich tobias at archlinux.org
Wed Aug 1 15:43:04 EDT 2007


    Date: Wednesday, August 1, 2007 @ 15:43:04
  Author: tobias
    Path: /home/cvs-arch/arch/build/base/vi

Modified: PKGBUILD (1.1 -> 1.2) fetch_patches.sh (1.1 -> 1.2)

bring the new vi/vim/gvim layout to testing


------------------+
 PKGBUILD         |   10 +++++-----
 fetch_patches.sh |    6 ++++++
 2 files changed, 11 insertions(+), 5 deletions(-)


Index: arch/build/base/vi/PKGBUILD
diff -u arch/build/base/vi/PKGBUILD:1.1 arch/build/base/vi/PKGBUILD:1.2
--- arch/build/base/vi/PKGBUILD:1.1	Mon Jul  9 20:26:29 2007
+++ arch/build/base/vi/PKGBUILD	Wed Aug  1 15:43:04 2007
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD,v 1.1 2007/07/10 00:26:29 tobias Exp $
+# $Id: PKGBUILD,v 1.2 2007/08/01 19:43:04 tobias Exp $
 # Maintainer: tobias [ tobias at archlinux org ]
 
 pkgname=vi
 _srcver=7.1
-_patchlevel=22
+_patchlevel=47
 pkgver=${_srcver}.${_patchlevel}
 pkgrel=1
 pkgdesc="a highly configurable, improved version of the vi text editor (basic version)"
@@ -22,15 +22,15 @@
 md5sums=('44c6b4914f38d6f9aa959640b89da329'
          '605cc7ae31bcc9d7864bb0bb6025f55d'
          '144aa049ba70621acf4247f0459f3ee7'
-         'fba5e33a451066494c7203d13cf0be3d'
-         '0c75e1c272188ac71ce49923fa29b70c')
+         'fd7aa27ca214a86eccefb414c2e0d172'
+         '136c1296c9fa91bfe4220637d8cabb11')
 
 build()
 {
   # pull in patches from vim.org (or the src cache alternatively)
   . ${startdir}/fetch_patches.sh
   . ${startdir}/fetch_runtime.sh
-  get_patches
+  get_patches || return 1
   cd ${startdir}/src/vim$(echo ${_srcver} | sed "s/\.//")
   # set the virc different from vimrc
   sed -i 's|^.*\(#define SYS_VIMRC_FILE.*"\) .*$|\1|' src/feature.h
Index: arch/build/base/vi/fetch_patches.sh
diff -u arch/build/base/vi/fetch_patches.sh:1.1 arch/build/base/vi/fetch_patches.sh:1.2
--- arch/build/base/vi/fetch_patches.sh:1.1	Mon Jul  9 20:26:29 2007
+++ arch/build/base/vi/fetch_patches.sh	Wed Aug  1 15:43:04 2007
@@ -17,7 +17,9 @@
   echo -e "\tfetching checksumfile for patches"
   wget ${_rpath}/MD5SUMS >/dev/null 2>&1
 
+  downloads=0
   for _line in $(/bin/cat MD5SUMS); do
+    downloads=$((${downloads} + 1))
     _md5=$(echo $_line | cut -d ' ' -f1)
     _file=$(echo $_line | cut -d ' ' -f3)
     if [ -f ${SRCDEST}/vim-${_srcver}/${_file} ]; then
@@ -41,6 +43,10 @@
       return 1
     fi
   done
+  if [ ${downloads} != ${_patchlevel} ]; then
+    echo -e "Number of patches does not match the patchlevel!\nEdit the PKGBUILD accordingly!"
+    return 1
+  fi
   IFS=$_OLDIFS
   rm MD5SUMS
   cd ${startdir}/src/vim$(echo ${_srcver} | sed "s/\.//")




More information about the arch-commits mailing list