diff options
author | davideGiovannini <davide.giovannini@studenti.unitn.it> | 2018-10-03 09:39:30 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2018-10-03 09:39:30 +0200 |
commit | 0d7196861523ca14a1df58f7fbf9a75c34723175 (patch) | |
tree | 083967c8307d644734c63db0bcb088c0daae30e8 /ci/before_deploy.bash | |
parent | 80da0dc6194d94dbbc87185283d4e299b8101dfd (diff) |
Generate shell completions with clap during build (#327)
* Generate shell completions with clap during build
* Updated ci release script, added SHELL_COMPLETIONS_DIR override to build.rs and fixed dependency version
Diffstat (limited to 'ci/before_deploy.bash')
-rwxr-xr-x | ci/before_deploy.bash | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ci/before_deploy.bash b/ci/before_deploy.bash index 16cb261c..daf4f7a6 100755 --- a/ci/before_deploy.bash +++ b/ci/before_deploy.bash @@ -27,6 +27,7 @@ pack() { # create a "staging" directory mkdir "$tempdir/$package_name" + mkdir "$tempdir/$package_name/autocomplete" # copying the main binary cp "target/$TARGET/release/$PROJECT_NAME" "$tempdir/$package_name/" @@ -38,6 +39,11 @@ pack() { cp LICENSE-MIT "$tempdir/$package_name" cp LICENSE-APACHE "$tempdir/$package_name" + # various autocomplete + cp target/"$TARGET"/release/build/"$PROJECT_NAME"-*/out/"$PROJECT_NAME".bash "$tempdir/$package_name/autocomplete/${PROJECT_NAME}.bash-completion" + cp target/"$TARGET"/release/build/"$PROJECT_NAME"-*/out/"$PROJECT_NAME".fish "$tempdir/$package_name/autocomplete" + cp target/"$TARGET"/release/build/"$PROJECT_NAME"-*/out/_"$PROJECT_NAME" "$tempdir/$package_name/autocomplete" + # archiving pushd "$tempdir" tar czf "$out_dir/$package_name.tar.gz" "$package_name"/* |