Skip to content

Commit

Permalink
Fix build with txt2tags >= 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and jef-n committed Feb 9, 2020
1 parent 3c64bbd commit 58f1206
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmake/Txt2Tags.cmake
Expand Up @@ -46,15 +46,15 @@ MACRO(ADD_TXT2TAGS_FILES _sources)
ADD_CUSTOM_COMMAND(
OUTPUT ${_out}
COMMAND ${TXT2TAGS_EXECUTABLE}
ARGS --encoding=utf-8 -o${_out} -t txt ${_in}.tmp
ARGS -o${_out} -t txt ${_in}.tmp
DEPENDS ${_in}
COMMENT "Building ${_out} from ${_in}"
)

ADD_CUSTOM_COMMAND(
OUTPUT ${_out}.html
COMMAND ${TXT2TAGS_EXECUTABLE}
ARGS --encoding=utf-8 -o${_out}.html -t html ${_in}.tmp
ARGS -o${_out}.html -t html ${_in}.tmp
DEPENDS ${_in}
COMMENT "Building ${_out}.html from ${_in}"
)
Expand Down
4 changes: 2 additions & 2 deletions doc/INSTALL.t2t
Expand Up @@ -11,7 +11,7 @@ Building QGIS from source - step by step
%! PostProc(html): \(R\) ®
% Next line will replace tabs with 2 spaces in txt generated outputs
%! PostProc(txt): '(?i)(\t)' ' '
%! encoding: iso-8859-1
%! encoding: utf-8
%
% Tex processing
%
Expand All @@ -36,7 +36,7 @@ Building QGIS from source - step by step
%! PostProc(tex): NEWPAGE '\\newpage'
% Give alternating table rows different colors and use a smaller font in tables (\tiny)
%! PostProc(tex): '\\begin{tabular}' '\\rowcolors{2}{tableShade}{white} \n\\tiny\\begin{tabular}'
%! encoding: iso-8859-1
%! encoding: utf-8

%! PostProc(tex): WALLPAPER-IMAGE 'qgis-footer.png'
% These are comments and will not be generated in any output
Expand Down
2 changes: 1 addition & 1 deletion doc/NEWS.t2t
Expand Up @@ -10,7 +10,7 @@ Change history for the QGIS Project
%! PostProc(html): '(?i)(</pre>)' '\1</div>'
% Next line will replace tabs with 2 spaces in txt generated outputs
%! PostProc(txt): '(?i)(\t)' ' '
%! encoding: iso-8859-1
%! encoding: utf-8
%
% These are comments and will not be generated in any output
% -------------------
Expand Down
4 changes: 2 additions & 2 deletions scripts/release.pl
Expand Up @@ -182,8 +182,8 @@ ($$)
unless( $dopoint ) {
run( "perl -i -pe 's/qgis-dev-deps/qgis-ltr-deps/;' doc/msvc.t2t", "could not update osgeo4w deps package" ) if $doltr;
run( "perl -i -pe 's/qgis-dev-deps/qgis-rel-deps/;' doc/msvc.t2t", "could not update osgeo4w deps package" ) unless $doltr;
run( "txt2tags --encoding=utf-8 -odoc/INSTALL.html -t html doc/INSTALL.t2t", "could not update INSTALL.html" );
run( "txt2tags --encoding=utf-8 -oINSTALL -t txt doc/INSTALL.t2t", "could not update INSTALL" );
run( "txt2tags -odoc/INSTALL.html -t html doc/INSTALL.t2t", "could not update INSTALL.html" );
run( "txt2tags -oINSTALL -t txt doc/INSTALL.t2t", "could not update INSTALL" );

run( "cp -v images/splash/splash-$newmajor.$newminor.png images/splash/splash.png", "splash png switch failed" );
run( "convert -resize 164x314 ms-windows/Installer-Files/WelcomeFinishPage-$newmajor.$newminor.png BMP3:ms-windows/Installer-Files/WelcomeFinishPage.bmp", "installer bitmap switch failed" );
Expand Down
4 changes: 2 additions & 2 deletions scripts/update-news.pl
Expand Up @@ -61,8 +61,8 @@

copy($tempfile, "doc/NEWS.t2t");

system "txt2tags --encoding=utf-8 -odoc/NEWS.html -t html doc/NEWS.t2t";
system "txt2tags --encoding=utf-8 -oNEWS -t txt doc/NEWS.t2t";
system "txt2tags -odoc/NEWS.html -t html doc/NEWS.t2t";
system "txt2tags -oNEWS -t txt doc/NEWS.t2t";

=head1 NAME
Expand Down

0 comments on commit 58f1206

Please sign in to comment.