[arch-commits] Commit in git/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Fri Oct 1 07:17:44 UTC 2010


    Date: Friday, October 1, 2010 @ 03:17:43
  Author: allan
Revision: 92782

upgpkg: git 1.7.3.1-2
fix python2 stuff

Modified:
  git/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-10-01 06:33:31 UTC (rev 92781)
+++ PKGBUILD	2010-10-01 07:17:43 UTC (rev 92782)
@@ -3,7 +3,7 @@
 
 pkgname=git
 pkgver=1.7.3.1
-pkgrel=1
+pkgrel=2
 pkgdesc="the fast distributed version control system"
 arch=(i686 x86_64)
 url="http://git-scm.com/"
@@ -45,8 +45,9 @@
   cp -a ./contrib $pkgdir/usr/share/git/ || return 1
 
   # scripts are for python 2.x
-  find "$pkgdir" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
-  sed -i 's|#!/usr/bin/python|#!/usr/bin/env python2|' "$pkgdir"/usr/lib/git-core/git-remote-testgit
+  sed -i 's|#![ ]*/usr/bin/env python|#!/usr/bin/env python2|' \
+    $(find "$pkgdir" -name '*.py') \
+    "$pkgdir"/usr/share/git/{fast-import/git-p4,gitview/gitview}
 
   # emacs interface
   mkdir -p $pkgdir/usr/share/emacs/site-lisp




More information about the arch-commits mailing list