Author: bugman Date: Wed Sep 19 16:57:35 2012 New Revision: 17512 URL: http://svn.gna.org/viewcvs/relax?rev=17512&view=rev Log: Created a simple shell script to find duplicate titles in the relax user manual. This is important for the HTML version of the manual as duplicated titles causes HTML pages to be overwritten. For example all chapters, sections and subsections titled "Introduction" will load the introduction.html file which will contain the text of the last section with that title! Added: trunk/docs/latex/find_duplicate_titles.sh (with props) Added: trunk/docs/latex/find_duplicate_titles.sh URL: http://svn.gna.org/viewcvs/relax/trunk/docs/latex/find_duplicate_titles.sh?rev=17512&view=auto ============================================================================== --- trunk/docs/latex/find_duplicate_titles.sh (added) +++ trunk/docs/latex/find_duplicate_titles.sh Wed Sep 19 16:57:35 2012 @@ -1,0 +1,16 @@ +#! /bin/sh + +grep "section{" *.tex -h \ +| grep -v subsubsection \ +| sed "s/subsection//g" \ +| sed "s/section//g" \ +| sed "s/ //g" \ +| sed "s/ \\\\label.*//g" \ +| sed "s/{//g" \ +| sed "s/}//g" \ +| sed "s/^\\\\//g" \ +| sed "s/^The //g" \ +| sed "s/\\\\-//g" \ +| sed "s/\\\\//g" \ +| sort \ +| uniq -d Propchange: trunk/docs/latex/find_duplicate_titles.sh ------------------------------------------------------------------------------ svn:eol-style = native Propchange: trunk/docs/latex/find_duplicate_titles.sh ------------------------------------------------------------------------------ svn:executable = *