Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] add man pages to https://github.com/AsamK/signal-cli/releases/download/v"${VERSION}"/signal-cli-"${VERSION}".tar #1660

Open
jpm1743 opened this issue Dec 31, 2024 · 1 comment

Comments

@jpm1743
Copy link

jpm1743 commented Dec 31, 2024

since reference is made to the manpages in the readme and elsewhere, it would seem reasonable to include the manpages in the tarball and add them to the manpath like

export MANPATH="$(manpath -g):/opt/signal-cli-0.13.11/man"

thanks for providing and supporting signal-cli

@jpm1743
Copy link
Author

jpm1743 commented Dec 31, 2024

#!/bin/bash

# installSignalCli
# 202412311205 jpm1734
# this script requires asciidoctor
# use at your own risk

read -p "enter signal-cli version number: " version
export VERSION=$version

wget https://github.com/AsamK/signal-cli/releases/download/v"${VERSION}"/signal-cli-"${VERSION}".tar.gz

sudo tar xf signal-cli-"${VERSION}".tar.gz -C /opt
sudo ln -sf /opt/signal-cli-"${VERSION}"/bin/signal-cli /usr/local/bin/

cd /opt/signal-cli-"$VERSION"

sudo wget https://github.com/AsamK/signal-cli/archive/refs/heads/master.zip
sudo unzip master.zip

cd signal-cli-master/man

sudo asciidoctor -b manpage ./signal-cli.1.adoc
sudo asciidoctor -b manpage ./signal-cli-dbus.5.adoc
sudo asciidoctor -b manpage ./signal-cli-jsonrpc.5.adoc
sudo mkdir -p /opt/signal-cli-0.13.11/man/{man1,man5}
sudo mv *.1 /opt/signal-cli-0.13.11/man/man1/
sudo mv *.5 /opt/signal-cli-0.13.11/man/man5
sudo export MANPATH="$(manpath -g):/opt/signal-cli-0.13.11/man"
sudo rm -r /opt/signal-cli-"$VERSION"/{master.zip,signal-cli-master}
cd
rm signal-cli-"${VERSION}".tar.gz
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant