doc: move bashbot.ascii

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-09 22:25:15 +01:00
parent 8253a53994
commit 88a24cb2a3
3 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ BOTCOMMANDS="-h help init start stop status suspendback resumeback killb
# 8 - curl/wget missing
# 10 - not bash!
#
#### $$VERSION$$ v1.25-dev-41-g37e4539
#### $$VERSION$$ v1.25-dev-46-g8253a53
##################################################################
# emmbeded system may claim bash but it is not
@ -169,7 +169,7 @@ RUNUSER="${USER}" # USER is overwritten by bashbot array :-(, save original
case "$1" in
"") [ -z "${SOURCE}" ] && printf "${ORANGE}Available commands: ${GREY}${BOTCOMMANDS}${NN}" && exit
;;
"-h"*) LOGO="${BASHBOT_HOME:-.}/bin/bashbot.ascii"
"-h"*) LOGO="${BASHBOT_HOME:-.}/doc/bashbot.ascii"
[ -r "${LOGO}" ] && cat "${LOGO}"
sed -nE -e '/(NOT EDIT)|(shellcheck)/d' -e '3,/###/p' <"$0"
exit;;

View File

@ -1,6 +1,6 @@
#!/bin/bash
#
#### $$VERSION$$ v1.25-dev-40-g4a9d1f0
#### $$VERSION$$ v1.25-dev-46-g8253a53
# shellcheck disable=SC2016
#
# Easy Versioning in git:
@ -56,7 +56,7 @@ FILES="$(find ./*)"
if [[ "${FILES}" == *"README.md"* ]]; then
FILES+=" README.html README.txt"
type -f pandoc >/dev/null && pandoc -s -f commonmark -M "title=Bashbot README" README.md >README.html
cat "bin/bashbot.ascii" >"README.txt"
cat "doc/bashbot.ascii" >"README.txt"
if [ -r "README.html" ] && type -f html2text >/dev/null; then
# convert html links to text [link]
sed -E 's/<a href="([^>]+)">([^<#]+)<\/a>/\2 [\1]/' <README.html |\