Two small example plug-ins that are to specific to enter the repo.
One opens all active configuration files in a split view with gvim and
the other wraps git-format-patch and sets the subject prefix.
--
Greetings,
Dirk
#!/bin/bash
# There is a ini syntax definition at
http://www.vim.org/scripts/script.php?script_id=2475
# :au! BufNewFile,BufRead xjhrc setfiletype ini
# :au! BufNewFile,BufRead */xjhrc.token/* setfiletype ini
if [ -n "${XJHBUILD_CONFIG_TOKEN}" ] ; then
gvim -O ~/.x-jhbuild/xjhrc "${XJHBUILD_XJH_DIRECTORY_PATH}/xjhrc"
"${XJHBUILD_XJH_DIRECTORY_PATH}/xjhrc.token/${XJHBUILD_CONFIG_TOKEN}" "$...@}"
else
gvim -O ~/.x-jhbuild/xjhrc "${XJHBUILD_XJH_DIRECTORY_PATH}/xjhrc" "$...@}"
fi
#!/bin/bash
error() {
echo "ERROR ($(basename ${0})): $...@}" >&2
exit 1
}
module_sign=$(xjh --callback get-cwd-module)
[ -n "${module_sign}" ] || error "Could not obtain a module name for the label"
module_sign="${module_sign#xf86-input-}"
module_sign="${module_sign#xf86-video-}"
module_sign="${module_sign#xorg-server}"
git format-patch --subject-prefix="PATCH${module_sign:+ }${module_sign}"
"$...@}"
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel