git-merge-vim-runtime: change comment for the standard handler
[vim_extended.git] / update-vim-runtime.sh
blob85fb05007e938a390012bc46e2d40da3a249b75f
1 #!/bin/sh
3 # by Markus Heidelberg, 2008
5 # Fetch the current runtime files, commit them to the repository and show
6 # changes if available.
8 # check the current branch
9 if [ "$(git symbolic-ref HEAD)" != "refs/heads/vim-runtime" ]
10 then
11 echo 'You have to be on the "vim-runtime" branch'
12 exit 1
15 rsync -avzcP --delete \
16 --exclude="/dos/" \
17 --include="/spell/en.*.spl" \
18 --exclude="/spell/*.spl" \
19 --include="/spell/en.*.sug" \
20 --exclude="/spell/*.sug" \
21 ftp.nluug.nl::Vim/runtime/ runtime
23 # commit
24 git add runtime
25 git commit -m"update runtime files" &&
26 # show changes
27 { git show --stat -p
28 # look for garbage
29 git status ; }