mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
actually update the header name for real
This commit is contained in:
parent
c627d8ce0a
commit
6c186f2795
1 changed files with 3 additions and 3 deletions
|
@ -39,13 +39,13 @@ if ! which git >/dev/null 2>&1; then
|
||||||
|
|
||||||
# git unavailable. just document everything as it is.
|
# git unavailable. just document everything as it is.
|
||||||
dash ./sh/document || die 'failed to generate documentation'
|
dash ./sh/document || die 'failed to generate documentation'
|
||||||
printf '%s\n' '' '## compatibility' '' >> README.md~ || die 'failed to make room for compatibility table'
|
printf '%s\n' '' '## compatibility table' '' >> README.md~ || die 'failed to make room for compatibility table'
|
||||||
dash ./tableize >> README.md~ || die 'failed to generate compatibility table'
|
dash ./tableize >> README.md~ || die 'failed to generate compatibility table'
|
||||||
|
|
||||||
elif [ "$1" = local ]; then
|
elif [ "$1" = local ]; then
|
||||||
# user requested to ignore git.
|
# user requested to ignore git.
|
||||||
dash ./sh/document || die 'failed to generate documentation'
|
dash ./sh/document || die 'failed to generate documentation'
|
||||||
printf '%s\n' '' '## compatibility' '' >> README.md~ || die 'failed to make room for compatibility table'
|
printf '%s\n' '' '## compatibility table' '' >> README.md~ || die 'failed to make room for compatibility table'
|
||||||
dash ./tableize >> README.md~ || die 'failed to generate compatibility table'
|
dash ./tableize >> README.md~ || die 'failed to generate compatibility table'
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -65,7 +65,7 @@ else
|
||||||
# use new documentation-generating scripts on old shell scripts.
|
# use new documentation-generating scripts on old shell scripts.
|
||||||
cp -p README.md temp/README.md || die 'failed to copy existing readme'
|
cp -p README.md temp/README.md || die 'failed to copy existing readme'
|
||||||
dash ./sh/document temp || die 'failed to generate documentation'
|
dash ./sh/document temp || die 'failed to generate documentation'
|
||||||
printf '%s\n' '' '## compatibility' '' >> temp/README.md~ || die 'failed to make room for compatibility table'
|
printf '%s\n' '' '## compatibility table' '' >> temp/README.md~ || die 'failed to make room for compatibility table'
|
||||||
dash ./tableize temp >> temp/README.md~ || die 'failed to generate compatibility table'
|
dash ./tableize temp >> temp/README.md~ || die 'failed to generate compatibility table'
|
||||||
|
|
||||||
#[ ! -e README.md ] || backup README.md || die 'failed to backup existing readme'
|
#[ ! -e README.md ] || backup README.md || die 'failed to backup existing readme'
|
||||||
|
|
Loading…
Add table
Reference in a new issue