Add git submodule instruction

This commit is contained in:
Simon De Backer
2020-11-07 22:38:28 +01:00
parent e3b98001f3
commit 0bfbc37bc9
3 changed files with 23 additions and 3 deletions

View File

@@ -8,7 +8,14 @@ cd sources
git reset --hard origin/master
cd ..
git pull
# get updates
echo -e "\033[1;31m uses the repo submodule (note not yet) n/Y?.\033[m"
read a
if [[ $a == "Y" || $a == "y" ]]; then
git submodule update --init --recursive
else
git pull
fi
sed -i 's/DEFINES += QET_EXPORT_PROJECT_DB/#DEFINES += QET_EXPORT_PROJECT_DB/' qelectrotech.pro
GITCOMMIT=$(git rev-parse --short HEAD)

View File

@@ -11,7 +11,14 @@ SSH_OPTIONS=-B
cd $DEFAULT_DIR
cd qet_git
git pull
# get updates
echo -e "\033[1;31m uses the repo submodule (note not yet) n/Y?.\033[m"
read a
if [[ $a == "Y" || $a == "y" ]]; then
git submodule update --init --recursive
else
git pull
fi
GITCOMMIT=$(git rev-parse --short HEAD)

View File

@@ -10,7 +10,13 @@ git reset --hard origin/master
cd ..
# get updates
git pull
echo -e "\033[1;31m uses the repo submodule (note not yet) n/Y?.\033[m"
read a
if [[ $a == "Y" || $a == "y" ]]; then
git submodule update --init --recursive
else
git pull
fi
sed -i 's/DEFINES += QET_EXPORT_PROJECT_DB/#DEFINES += QET_EXPORT_PROJECT_DB/' qelectrotech.pro