~ubuntu-branches/ubuntu/utopic/vim/utopic

« back to all changes in this revision

Viewing changes to debian/update-patches

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-01-13 18:39:18 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090113183918-kgq1jzdwsbbex4pq
Tags: 2:7.2.079-1ubuntu1
* Resynchronise with Debian (diversions fix closes LP: #296324). Remaining
  changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    git diff-index --cached --quiet HEAD -- \
19
19
    || die "Your tree is unclean, can't do that..."
20
20
 
 
21
which lftp || die "You need lftp installed for this script..."
 
22
 
21
23
onlyupstream=0
22
24
case "$1" in
23
25
    -u)
77
79
    patch -Np0 < $p
78
80
    git add $(lsdiff $p)
79
81
    author="$(sed -n -e 's/^From: *//;t done;d;: done;p' $p)"
 
82
    date="$(awk '/^--- src\/version.c/ {print}' $p | cut -f 2-)"
80
83
    subject="s/^ *[0-9]* *$p *//;t done;d;: done;p"
81
84
    msg='/^Patch /,/^Files:/{s/^Files:.*//;t;p}'
82
85
    (echo -n "[$p] "; git show debian:debian/README -- | sed -n "$subject"; \
83
 
     echo; sed -n "$msg" $p) | git commit --author "$author" -F -
 
86
     echo; sed -n "$msg" $p) | env GIT_AUTHOR_DATE="$date" git commit --author "$author" -F -
84
87
    rm $p
85
88
done
86
89