Skip to content
Snippets Groups Projects
Commit 95d363a1 authored by Eric Cano's avatar Eric Cano
Browse files

Added module update hooks to bootstrap scripts.

parent cdd1c72d
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,14 @@ set -x
echo Getting CTA sources...
( cd ~ ; git clone https://:@gitlab.cern.ch:8443/cta/CTA.git; cd CTA ; git submodule update --init --recursive)
cat > ~/CTA/.git/hooks/post-checkout << EOFGitHook
#!/bin/sh
cd `git rev-parse --show-toplevel`
git submodule update --init --recursive
EOFGitHook
chmod +x ~/CTA/.git/hooks/post-checkout
cp ~/CTA/.git/hooks/post-checkout ~/CTA/.git/hooks/post-merge
echo Creating source rpm
mkdir -p ~/CTA-build-srpm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment