release.sh: bugfix: take docs from tmpdir, not startdir

This commit is contained in:
Michael Stapelberg 2015-07-30 22:21:48 +02:00
parent 5a20394092
commit c493cde96e
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ git commit -a -m "save docs for ${PREVIOUS_VERSION}"
for i in $(find _docs -maxdepth 1 -and -type f -and \! -regex ".*\.\(html\|man\)$" -and \! -name "Makefile") for i in $(find _docs -maxdepth 1 -and -type f -and \! -regex ".*\.\(html\|man\)$" -and \! -name "Makefile")
do do
base="$(basename $i)" base="$(basename $i)"
[ -e "${STARTDIR}/docs/${base}" ] && cp "${STARTDIR}/docs/${base}" "_docs/${base}" [ -e "${TMPDIR}/i3/docs/${base}" ] && cp "${TMPDIR}/i3/docs/${base}" "_docs/${base}"
done done
(cd _docs && make) (cd _docs && make)
@ -171,7 +171,7 @@ done
for i in $(find _docs -maxdepth 1 -and -type f -and \! -regex ".*\.\(html\|man\)$" -and \! -name "Makefile") for i in $(find _docs -maxdepth 1 -and -type f -and \! -regex ".*\.\(html\|man\)$" -and \! -name "Makefile")
do do
base="$(basename $i)" base="$(basename $i)"
[ -e "${STARTDIR}/docs/${base}" ] && cp "_docs/${base}.html" docs/ [ -e "${TMPDIR}/i3/docs/${base}" ] && cp "_docs/${base}.html" docs/
done done
git commit -a -m "update docs for ${RELEASE_VERSION}" git commit -a -m "update docs for ${RELEASE_VERSION}"