mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
docs: Add rad.1 manual page
This is a general guide to getting started on radicle, available as a man page. We also make sure that the page is built on release.
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "usage: $0 <output-dir> <input-file>..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
outdir="$1"
|
||||
shift
|
||||
|
||||
for input in "$@"; do
|
||||
echo "Building $input.."
|
||||
asciidoctor --doctype manpage --backend manpage --destination-dir "$outdir" "$input"
|
||||
done
|
||||
@@ -28,6 +28,8 @@ main () {
|
||||
cargo build --target="$target" --bin git-remote-rad --release
|
||||
cp target/"$target"/release/git-remote-rad "$staging"/
|
||||
|
||||
./build-man-pages.sh "$staging" "$(find . -name '*.1.adoc')"
|
||||
|
||||
tar czf "$staging.tar.gz" "$staging"
|
||||
cp "$staging.tar.gz" "$staging"/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user