[SCM] Vim packaging branch, debian, updated. upstream/7.1.ds-328-gfb35f5e
Pierre Habouzit
madcoder at debian.org
Sun Mar 30 20:30:17 UTC 2008
The following commit has been merged in the debian branch:
commit c8a9169cdfc1e885687f99e8f4f9d27186b04a0b
Author: Pierre Habouzit <madcoder at debian.org>
Date: Sun Mar 30 22:29:01 2008 +0200
Okay, let's use some really advanced git scripting, for better robustness.
Signed-off-by: Pierre Habouzit <madcoder at debian.org>
diff --git a/debian/update-patches b/debian/update-patches
index 4a1e2e0..8293648 100755
--- a/debian/update-patches
+++ b/debian/update-patches
@@ -1,14 +1,30 @@
#!/bin/sh
set -e
+OPTIONS_SPEC="\
+$(basename $0)
+
+updates patches from upstream vim
+--
+"
+SUBDIRECTORY_OK=
+. git-sh-setup
+require_work_tree
+
host='ftp.vim.org'
version='7.1'
dir="pub/vim/patches/$version"
-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
+die() {
+ echo >&2 "$@"
+ exit 1;
+}
+
+git rev-parse --verify HEAD > /dev/null && \
+ git update-index --refresh && \
+ git diff-files --quiet && \
+ git diff-index --cached --quiet HEAD -- \
+ || die "Your tree is unclean, can't do that..."
git checkout debian
--
Vim packaging
More information about the pkg-vim-maintainers
mailing list