diff options
author | Canop <cano.petrole@gmail.com> | 2022-04-03 21:04:31 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-04-03 21:04:31 +0200 |
commit | 4e07db85f341dc00870356cd564990ceac48c8a0 (patch) | |
tree | 127ea1434dec75b6eb58846263869d7dc231190c | |
parent | 5231feaf61b47c8749ed9ba303a58b3d9516483f (diff) |
fix build chain
-rwxr-xr-x | compile-all-targets.sh | 4 | ||||
-rwxr-xr-x | release.sh | 2 | ||||
-rwxr-xr-x | version.sh | 4 |
3 files changed, 7 insertions, 3 deletions
diff --git a/compile-all-targets.sh b/compile-all-targets.sh index 8436daa..2249834 100755 --- a/compile-all-targets.sh +++ b/compile-all-targets.sh @@ -1,4 +1,4 @@ -# WARNING: This script is NOT meant for normal installation, it's dedicated +#WARNING: This script is NOT meant for normal installation, it's dedicated # to the compilation of all supported targets, from a linux machine. # This is a long process and it involves specialized toolchains. # For usual compilation do @@ -10,7 +10,7 @@ H1="\n\e[30;104;1m\e[2K\n\e[A" # style first header H2="\n\e[30;104m\e[1K\n\e[A" # style second header EH="\e[00m\n\e[2K" # end header -version=$(sed 's/version = "\([0-9.]\{1,\}\(-[a-z]\+\)\?\)"/\1/;t;d' Cargo.toml | head -1) +version=$(./version.sh) echo -e "${H1}Compilation of all targets for broot $version${EH}" # clean previous build @@ -1,7 +1,7 @@ # build a new release of broot # This isn't used for normal compilation (see https://dystroy.org/broot for instruction) # but for the building of the official releases -version=$(sed 's/version = "\([0-9.]\{1,\}\)"/\1/;t;d' Cargo.toml | head -1) +version=$(./version.sh) echo "Building release $version" diff --git a/version.sh b/version.sh new file mode 100755 index 0000000..d0acb26 --- /dev/null +++ b/version.sh @@ -0,0 +1,4 @@ +# extract the version from the Cargo.toml file +version=$(sed 's/^version = "\([^\"]*\)"/\1/;t;d' Cargo.toml | head -1) + +echo "$version" |