fix version being incorrect
This commit is contained in:
parent
b23d395ffd
commit
42c6e183ca
1 changed files with 4 additions and 1 deletions
|
@ -11,7 +11,7 @@ touch $version_file
|
||||||
|
|
||||||
# clone and check whether it's up-to-date
|
# clone and check whether it's up-to-date
|
||||||
cd $workdir
|
cd $workdir
|
||||||
git clone --recursive https://github.com/2IMT/polycat.git --depth 1 --shallow-submodules
|
git clone https://github.com/2IMT/polycat.git
|
||||||
cd ./polycat/
|
cd ./polycat/
|
||||||
# check version
|
# check version
|
||||||
version=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)")
|
version=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)")
|
||||||
|
@ -19,6 +19,9 @@ if grep -q $version $version_file; then
|
||||||
echo "already up to date, exiting"
|
echo "already up to date, exiting"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
# get the submodules since it needs to be updated
|
||||||
|
git submodule update --init --depth 1
|
||||||
|
|
||||||
|
|
||||||
# compilation
|
# compilation
|
||||||
cd $workdir/polycat/
|
cd $workdir/polycat/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue