~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to debian/update-patches

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-06-26 13:42:18 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080626134218-703edeyb8k70qpbz
Tags: 1:7.1.314-3ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Enable detection of GNU screen as a mouse-capable terminal.
  - Add NoDisplay=true to gvim.desktop.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Build-depend on libxt-dev.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
* Fixes various vulnerabilities due to improper quoting of 'execute'
  arguments (LP: #240216).
* Drop fixes for upgrade problems from Ubuntu 6.06 LTS; direct upgrades
  from 6.06 to 8.10 will not be supported.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
set -e
3
2
 
4
3
OPTIONS_SPEC="\
5
4
$(basename $0)
22
21
version='7.1'
23
22
dir="pub/vim/patches/$version"
24
23
 
25
 
curpatch=$(dpkg-parsechangelog | awk '/^Version:/{print $2}' | sed 's/^.*\.\([0-9]*\)\+-[0-9]\+$/\1/')
 
24
curpatch=$(git show debian:debian/README | tail -n1 | awk '{print $2}' | sed s/^$version\.//)
26
25
curpatch=$(($curpatch + 1))
27
26
newpatch=$(lftp -c "open $host; cd $dir; ls $version.*" | tail -n1 | awk -F. '{print $3}')
28
27
 
37
36
lftp -c "open $host; cd $dir; get README -o debian/README"
38
37
# Store debian/README while we update the other branches.  The debian branch
39
38
# will get reset to before this commit at the end of the script.
40
 
git commit -m 'Stash' -- debian/README
 
39
git commit -m "Update README for patches $curpatch - $newpatch" -- debian/README
41
40
 
42
41
git checkout upstream
43
42
 
66
65
    fi
67
66
done
68
67
 
69
 
# Undo the debian/README commit but leave the new README intact so the user
70
 
# can add add/update debian/changelog
71
68
git checkout debian
72
 
git reset HEAD~1
73
69
git merge upstream
74
70
 
75
71
echo "Patches $curpatch - $newpatch comitted and merged."
76
 
echo "Update debian/changelog and commit debian/README."