We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1300eb1 commit 362ad07Copy full SHA for 362ad07
scripts/branch-compare.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
set -e
3
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4
-cd $SCRIPT_DIR/..
+BASE_DIR=$(dirname $SCRIPT_DIR)
5
branch=$(git rev-parse --abbrev-ref HEAD)
6
echo "Comparing main branch with $branch"
7
@@ -20,7 +20,7 @@ rm -rf .bench-compare
20
mkdir .bench-compare
21
cd .bench-compare
22
echo "Fetching and build $branch .."
23
-git clone ${SCRIPT_DIR} -b $branch .
+git clone ${BASE_DIR} -b $branch .
24
git fetch origin
25
meson setup --warnlevel 0 --buildtype plain builddir-${branch}
26
cd builddir-${branch}
0 commit comments