Skip to content

Commit

Permalink
Make build.sh a little more resiliant
Browse files Browse the repository at this point in the history
  • Loading branch information
mchack-work committed Oct 18, 2023
1 parent 4b687ec commit f235491
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
#! /bin/sh

git clone -b v0.0.1 https://github.com/tillitis/tkey-libs.git ../tkey-libs
git clone -b v0.0.7 https://github.com/tillitis/tkey-device-signer.git ../tkey-device-signer
tkey_libs_version="v0.0.1"
signer_version="v0.0.7"

printf "Building tkey-libs with version: %s\n" "$tkey_libs_version"
printf "Building signer with version: %s\n" "$signer_version"

if [ -d ../tkey-libs ]
then
(cd ../tkey-libs; git checkout "$tkey_libs_version")
else
git clone -b "$tkey_libs_version" https://github.com/tillitis/tkey-libs.git ../tkey-libs
fi

if [ -d ../tkey-device-signer ]
then
(cd ../tkey-device-signer; git checkout "$signer_version")
else
git clone -b "$signer_version" https://github.com/tillitis/tkey-device-signer.git ../tkey-device-signer
fi

make -j -C ../tkey-libs
make -j -C ../tkey-device-signer
Expand Down

0 comments on commit f235491

Please sign in to comment.