3 # by Markus Heidelberg, 2008
5 # Fetch the current runtime files, commit them to the repository and show
6 # changes if available.
8 .
"$(git --exec-path)/git-sh-setup"
11 export GIT_AUTHOR_NAME
="Bram Moolenaar"
12 export GIT_AUTHOR_EMAIL
="Bram@moolenaar.net"
13 export GIT_COMMITTER_NAME
="$GIT_AUTHOR_NAME"
14 export GIT_COMMITTER_EMAIL
="$GIT_AUTHOR_EMAIL"
16 # rsync shouldn't overwrite own work, so the following tests
18 # test if working tree is dirty
19 git rev-parse
--verify HEAD
> /dev
/null
&&
20 git update-index
--refresh &&
21 git diff-files
--quiet &&
22 git diff-index
--cached --quiet HEAD
-- ||
23 die
"Working tree is dirty"
25 # test if runtime/ contains untracked files
26 test -z "$(git ls-files --others -- runtime)" ||
27 die
"Working tree contains untracked files in runtime/"
29 rsync
-avzcP --delete \
31 --include="/spell/en.*.spl" \
32 --exclude="/spell/*.spl" \
33 --include="/spell/en.*.sug" \
34 --exclude="/spell/*.sug" \
35 ftp.nluug.
nl::Vim
/runtime
/ runtime
37 git add
--all -- runtime
39 git commit
-m"update runtime files" &&