A Mastodon bot that expands shortened URLs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
340B

  1. #!/bin/sh
  2. name="expandurl-mastodon"
  3. if [ -n "${1}" ]; then
  4. dir="$(dirname ${0})"
  5. version="${1}"
  6. cp -vf "${dir}/${name}.1.adoc" .
  7. sed -Ei "s/(Revision: +)[0-9]+\.[0-9]\.[0-9]/\1${version}/" "${name}.1.adoc"
  8. a2x --doctype manpage --format manpage --no-xmllint "${name}.1.adoc"
  9. else
  10. echo "usage: ${0} VERSION" >&2
  11. fi