diff options
author | Canop <cano.petrole@gmail.com> | 2020-03-27 19:53:50 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-03-27 19:53:50 +0100 |
commit | a344abcc16c3b4f420dd014ff789818fe5212107 (patch) | |
tree | 075732d0560993cc24c030500e85700f106a3c8c /release.sh | |
parent | 3bfb9f545206fa66b72c419d9307d78fe4b56673 (diff) |
add a man pagev0.13.5
It can be built with release.sh or found in the official
releases of new versions.
Diffstat (limited to 'release.sh')
-rwxr-xr-x | release.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..4db29ba --- /dev/null +++ b/release.sh @@ -0,0 +1,26 @@ +# 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) + +echo "Building release $version" + +# make the build directory and compile for all targets +./compile-all-targets.sh + +# add the readme and changelog in the build directory +echo "This is broot. More info and installation instructions on https://dystroy.org/broot" > build/README.md +cp CHANGELOG.md build + +# add the man page and fix its date and version +cp man/page build/broot.1 +sed -i "s/#version/$version/g" build/broot.1 +sed -i "s/#date/$(date +'%Y\/%m\/%d')/g" build/broot.1 + +# prepare the release archive +rm broot_*.zip +zip -r "broot_$version.zip" build/* + +# copy it to releases folder +mkdir releases +cp "broot_$version.zip" releases |