ci: improve docs for manual build-and-publish scripts

This commit is contained in:
Andrew Gallant
2023-11-21 07:45:46 -05:00
parent c81caa673b
commit 040d8f2171
2 changed files with 19 additions and 7 deletions

View File

@@ -1,8 +1,5 @@
#!/bin/bash
set -e
D="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
# This script builds a binary dpkg for Debian based distros. It does not
# currently run in CI, and is instead run manually and the resulting dpkg is
# uploaded to GitHub at the end of this script.
@@ -11,6 +8,12 @@ D="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
# 'cargo install cargo-deb'.
#
# This should be run from the root of the ripgrep repo.
#
# TODO: It looks like this script could be pretty easily ported into GitHub
# Actions?
set -e
D="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
if ! command -V cargo-deb > /dev/null 2>&1; then
echo "cargo-deb command missing" >&2