Skip to content

Commit

Permalink
docs: add a header to all auto converted files
Browse files Browse the repository at this point in the history
This commits adds the following header to each autoconverted .rst file:

.. ATTENTION do not edit this file manually.
   It was automatically converted from the corresponding .tex file
  • Loading branch information
pstorz authored and franku committed Dec 12, 2018
1 parent 0b48224 commit 92c32f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/manuals/en/new_main_reference/post_conversion_changes.sh
Expand Up @@ -339,6 +339,15 @@ ${PERL} 's#:raw-latex:`\\host\{(.*?)\}`#:strong:`\1`#g' ${DESTFILE}



# add rst comment that this file was automatically converted

mv ${DESTFILE} ${DESTFILE}.tmp
echo ".. ATTENTION do not edit this file manually." > ${DESTFILE}
echo " It was automatically converted from the corresponding .tex file" >> ${DESTFILE}
echo "" >> ${DESTFILE}
cat ${DESTFILE}.tmp >> ${DESTFILE}
rm ${DESTFILE}.tmp

diff --color -ruN ${DESTFILE}.bak ${DESTFILE}

exit 0

0 comments on commit 92c32f4

Please sign in to comment.