mirror of https://github.com/CGAL/cgal
add script to rename doxygen macros
This commit is contained in:
parent
33bde31fef
commit
2864a76bb0
|
|
@ -0,0 +1,34 @@
|
|||
cgalexample cgalExample
|
||||
cgal_figure_anchor cgalFigureAnchor
|
||||
cgal_figure_ref cgalFigureRef
|
||||
cgal_figure_begin cgalFigureBegin
|
||||
cgal_figure_end cgalFigureEnd
|
||||
cgal_figure_caption_begin cgalFigureCaptionBegin
|
||||
cgal_figure_caption_end cgalFigureCaptionEnd
|
||||
cgalconcept cgalConcept
|
||||
cgalconceptnamespace cgalConceptNamespace
|
||||
refines cgalRefines
|
||||
requires cgalRequires
|
||||
models cgalModels
|
||||
generalizes cgalGeneralizes
|
||||
hasModel cgalHasModel
|
||||
debug cgalDebug
|
||||
advanced cgalAdvanced
|
||||
PkgPicture cgalPkgPicture
|
||||
PkgSummaryBegin cgalPkgSummaryBegin
|
||||
PkgSummaryEnd cgalPkgSummaryEnd
|
||||
PkgShortInfoBegin cgalPkgShortInfoBegin
|
||||
PkgShortInfoEnd cgalPkgShortInfoEnd
|
||||
PkgAuthor cgalPkgAuthor
|
||||
PkgAuthors cgalPkgAuthors
|
||||
PkgDesc cgalPkgDesc
|
||||
PkgSince cgalPkgSince
|
||||
PkgDependsOn cgalPkgDependsOn
|
||||
PkgLicense cgalPkgLicense
|
||||
PkgDemo cgalPkgDemo
|
||||
PkgDescriptionEnd cgalPkgDescriptionEnd
|
||||
PkgBib cgalPkgBib
|
||||
footnote cgalFootnote
|
||||
autotoc cgalAutotoc
|
||||
tag_true cgalTagTrue
|
||||
tag_false cgalTagFalse
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
nb_lines=`wc -l rename_macros.input | awk '{print $1}'`
|
||||
sort rename_macros.input -r > /tmp/sorted_rename_macros.input
|
||||
|
||||
for i in `seq 1 $nb_lines`; do
|
||||
l=`head -n $i /tmp/sorted_rename_macros.input | tail -n 1`
|
||||
echo $l | awk '{print "s/\\\\" $1 "/\\\\" $2 "/g"}'
|
||||
done > /tmp/rename_macros.sed
|
||||
|
||||
find ../.. -name '*.txt' -o -name '*.h' | xargs sed -i -f /tmp/rename_macros.sed
|
||||
|
||||
|
||||
for i in `seq 1 $nb_lines`; do
|
||||
l=`head -n $i /tmp/sorted_rename_macros.input | tail -n 1`
|
||||
echo $l | awk '{print "s/\\\"" $1 "=/\\\"" $2 "=/g"}'
|
||||
echo $l | awk '{print "s/\\\"" $1 "{/\\\"" $2 "{/g"}'
|
||||
done > /tmp/rename_macros.sed
|
||||
|
||||
sed -i -f /tmp/rename_macros.sed ../Doxyfile
|
||||
|
||||
#~ find ../.. -name '*.txt' -o -name '*.h'
|
||||
|
||||
Loading…
Reference in New Issue