Skip to content

Commit

Permalink
get target tripple using rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
muxcmux committed Jan 9, 2023
1 parent cc03647 commit f05bf3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build-exec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
!#/bin/env bash
set -e

tt=$(gcc -dumpmachine)
tt=$(rustc --version --verbose | grep host: | awk -F: '{gsub(/ /, "", $2); print($2)}')
ver=$(awk -F ' = ' '$1 ~ /version/ { gsub(/[\"]/, "", $2); printf("%s",$2) }' Cargo.toml)
name="besedka-$ver-$tt"
release="releases/$name"
Expand All @@ -17,5 +17,4 @@ rm -rf "$name"

cd ..

echo "Released $name"

echo "Built $name"

0 comments on commit f05bf3e

Please sign in to comment.