Commit 7a8b9842 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: run .gear/source-postupdate-hook

parent e090a593
...@@ -304,6 +304,15 @@ update_post_git_submodules() ...@@ -304,6 +304,15 @@ update_post_git_submodules()
docmd git commit $PSM -m "update source prepared with submodules for version $VERSION" docmd git commit $PSM -m "update source prepared with submodules for version $VERSION"
} }
source_postupdate_hook()
{
local RGD=$(get_root_git_dir)
if [ -s $RGD/.gear/source-postupdate-hook ] ; then
info "Detected .gear/source-postupdate-hook, run it ..."
sh $RGD/.gear/source-postupdate-hook
fi
}
# param: development, production # param: development, production
update_predownloaded() update_predownloaded()
{ {
...@@ -541,6 +550,7 @@ do ...@@ -541,6 +550,7 @@ do
fi fi
update_post_git_submodules update_post_git_submodules
source_postupdate_hook
# TODO: make plugins # TODO: make plugins
update_predownloaded development update_predownloaded development
update_predownloaded production update_predownloaded production
...@@ -550,6 +560,7 @@ do ...@@ -550,6 +560,7 @@ do
DOWNLOADSOME=1 DOWNLOADSOME=1
elif is_gear ; then elif is_gear ; then
commit_tarball "$FTB" commit_tarball "$FTB"
source_postupdate_hook
# TODO: make plugins # TODO: make plugins
update_predownloaded development update_predownloaded development
update_predownloaded production update_predownloaded production
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment