summaryrefslogtreecommitdiff
path: root/scripts/build_ptp.sh
diff options
context:
space:
mode:
authorHuan Nguyen <[email protected]>2025-05-15 08:31:33 -0600
committerHuan Nguyen <[email protected]>2025-05-15 08:31:33 -0600
commitede5c3487ebd4cd5fbfa2309d80ceab92010d96c (patch)
tree295320f48337a6c7bb1902d18bb656c656ee9ff4 /scripts/build_ptp.sh
parent7287ade62a51735b193bf3ec176be5db1fa23b4d (diff)
Try to help user if build script fails
A common error condition is that the user cloned the repo without the --recursive option. We'll try to get the submodules for them. We remove the git clone command because the submodule update should fix the issue.
Diffstat (limited to 'scripts/build_ptp.sh')
-rwxr-xr-xscripts/build_ptp.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build_ptp.sh b/scripts/build_ptp.sh
index 6f715749..9471d592 100755
--- a/scripts/build_ptp.sh
+++ b/scripts/build_ptp.sh
@@ -1,3 +1,6 @@
#! /bin/bash
-$(dirname `realpath $0`)/../test/cmake/ptp/run.sh build all
+SCRIPT_DIR=$(dirname "$(realpath "$0")")
+RUN_SCRIPT="$SCRIPT_DIR/../test/cmake/ptp/run.sh"
+
+. ./func_build.sh \ No newline at end of file