mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2026-01-09 00:31:47 +00:00
Add a post-merge githook to invalidate the local module manifest.
The Builder module manifest is generated once from the local tree if its missing. When new code is merged from a remote the manifest must be regenerated in order to reference and build the new libraries. At setup time a post-merge hook is now added to the local repository to clear the module manifest after merging.
This commit is contained in:
@@ -39,3 +39,8 @@ $ONL/tools/submodules.py $ONL sm/bigcode
|
||||
|
||||
# Export the current debian suite
|
||||
export ONL_DEBIAN_SUITE=$(lsb_release -c -s)
|
||||
|
||||
# Enable local post-merge githook
|
||||
if [ ! -f $ONL/.git/hooks/post-merge ]; then
|
||||
cp $ONL/tools/scripts/post-merge.hook $ONL/.git/hooks/post-merge
|
||||
fi
|
||||
|
||||
15
tools/scripts/post-merge.hook
Executable file
15
tools/scripts/post-merge.hook
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
############################################################
|
||||
#
|
||||
# Every time a merge is performed we should invalidate
|
||||
# the module manifest.
|
||||
#
|
||||
############################################################
|
||||
mm="$GIT_DIR/../make/module-manifest.mk"
|
||||
|
||||
if [ -f "$mm" ]; then
|
||||
echo "Removing module manifest after merge..."
|
||||
rm "$mm"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user