Skip to content

Commit

Permalink
Minor fix for info.sh (apache#7444)
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE authored Oct 9, 2024
1 parent f37517a commit dfbf226
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions dev/info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
set -e

version='0.0.2'
version='1.3.0-SNAPSHOT'
cb='```'

if [ ! -x "$(command -v cmake)" ]; then
Expand All @@ -33,7 +33,7 @@ echo "$info" | grep -e "$1" | ext
}

result="
Velox System Info v${version}
Gluten Version: ${version}
Commit: $(git rev-parse HEAD 2> /dev/null || echo "Not in a git repo.")
CMake Version: $(cmake --version | grep -oE '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+')
System: $(print_info 'CMAKE_SYSTEM "')
Expand All @@ -45,31 +45,4 @@ C Compiler: $(print_info 'CMAKE_C_COMPILER ==')
C Compiler Version: $(print_info 'CMAKE_C_COMPILER_VERSION')
CMake Prefix Path: $(print_info '_PREFIX_PATH ')
"
if [ "$CONDA_SHLVL" == 1 ]; then
conda="
Conda Env
<details>
$cb
$(conda list)
$cb
</details>
"
fi

all="$result $conda"
echo "$all"

if [ -x "$(command -v xclip)" ]; then
clip="xclip -selection c"
elif [ -x "$(command -v pbcopy)" ]; then
clip="pbcopy"
else
echo "\nThe results will be copied to your clipboard if xclip is installed."
fi

if [ ! -z "$clip" ]; then
echo "$all" | $clip
echo "Result copied to clipboard!"
fi
echo "$result"

0 comments on commit dfbf226

Please sign in to comment.