summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/latex-tds/build.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/latex-tds/build.pl')
-rwxr-xr-xMaster/texmf-dist/source/latex/latex-tds/build.pl46
1 files changed, 31 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/latex-tds/build.pl b/Master/texmf-dist/source/latex/latex-tds/build.pl
index 3f18b34a211..12baa7748bc 100755
--- a/Master/texmf-dist/source/latex/latex-tds/build.pl
+++ b/Master/texmf-dist/source/latex/latex-tds/build.pl
@@ -4,8 +4,8 @@ $^W=1;
my $prj = 'latex-tds';
my $file = 'build.pl';
-my $version = '1.178';
-my $date = '2013-02-26';
+my $version = '1.180';
+my $date = '2013-03-01';
my $author = 'Heiko Oberdiek';
my $copyright = "Copyright 2006-2013 $author";
chomp(my $license = <<"END_LICENSE");
@@ -76,7 +76,20 @@ my $dir_patch = 'patch';
my $dir_distrib = 'distrib';
my $dir_texmf = 'texmf';
chomp(my $cwd = `pwd`);
-my $dir_cache = "$cwd/cache";
+
+# cache directory
+use File::HomeDir;
+my $homedir = File::HomeDir->my_home;
+my $dir_cache;
+if ($homedir && -d "$homedir/.cache") {
+ $dir_cache = "$homedir/.cache/latex-tds";
+ -d $dir_cache or mkdir $dir_cache
+ or die "$error Cannot make directory `$dir_cache'!\n";
+ symlink $dir_cache, "$cwd/cache";
+}
+else {
+ $dir_cache = "$cwd/cache";
+}
my $jar_pdfbox_rewrite = "$cwd/$dir_lib/pdfbox-rewrite.jar";
my $jar_multivalent = "$cwd/$dir_lib/Multivalent20060102.jar";
@@ -124,6 +137,7 @@ my $prg_unzip = 'unzip';
my $prg_w3m = 'w3m';
my $prg_weave = 'weave';
my $prg_wget = 'wget';
+my $prg_wkhtmltopdf = 'wkhtmltopdf'; # with patched qt
my $prg_zip = 'zip';
my $prg_ziptimetree = $file_ziptimetree;
@@ -1809,7 +1823,7 @@ if ($modules{'source'}) {
my $file_readme = 'README';
my $file_readme_html = 'README.html';
my $file_readme_pdf = 'README.pdf';
- my $file_readme_notoc_html = "$dir_build_source/README-notoc.html";
+ # my $file_readme_notoc_html = "$dir_build_source/README-notoc.html";
my $file_readme_w3m_txt = "$dir_build_source/README-w3m.txt";
ensure_directory($dir_build_source);
@@ -1818,17 +1832,18 @@ if ($modules{'source'}) {
run("$prg_asciidoc --backend=xhtml11 README.asciidoc");
# generate README.pdf
- run("$prg_asciidoc --out-file=$file_readme_notoc_html"
- . " --backend=xhtml11"
- . " -a disable-javascript"
- . " -a toc!"
- . " README.asciidoc"
- );
- run("$prg_lowriter --invisible --convert-to odt "
- . "--outdir $dir_build_source $file_readme_notoc_html");
- run("$prg_lowriter --invisible --convert-to pdf "
- . "--outdir $dir_build_source $dir_build_source/README-notoc.odt");
- run("$prg_cp -p $dir_build_source/README-notoc.pdf $file_readme_pdf");
+ # run("$prg_asciidoc --out-file=$file_readme_notoc_html"
+ # . " --backend=xhtml11"
+ # . " -a disable-javascript"
+ # . " -a toc!"
+ # . " README.asciidoc"
+ # );
+ # run("$prg_lowriter --invisible --convert-to odt "
+ # . "--outdir $dir_build_source $file_readme_notoc_html");
+ # run("$prg_lowriter --invisible --convert-to pdf "
+ # . "--outdir $dir_build_source $dir_build_source/README-notoc.odt");
+ # run("$prg_cp -p $dir_build_source/README-notoc.pdf $file_readme_pdf");
+ run("$prg_wkhtmltopdf $file_readme_html $file_readme_pdf");
# run("$prg_cp -p README.asciidoc $dir_build_source/README");
run("$prg_w3m -dump README.html>$file_readme_w3m_txt");
@@ -1880,6 +1895,7 @@ if ($modules{'source'}) {
install $dir_dest, qw[
build.pl
README.asciidoc
+ README-docinfo.html
];
install "$dir_dest/tex", glob("$dir_tex/*.*");