From 7867772fc940308e5d66aefc6b270163d52f242b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 15 Apr 2020 22:35:35 +0000 Subject: generate apa7 config files git-svn-id: svn://tug.org/texlive/trunk@54757 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/libexec/ctan2tds | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Master/tlpkg') diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 5e920332ab3..a05f129581b 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1403,6 +1403,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`); %prehook = ( 'a2ping' => '&PREHOOK_a2ping', 'apa6' => '&PREHOOK_apa6', + 'apa7' => '&PREHOOK_apa7', 'cals' => '&PREHOOK_cals', 'chess' => '&PREHOOK_chess', 'clojure-pamphlet' => '&PREHOOK_clojure_pamphlet', @@ -4296,17 +4297,19 @@ sub runjob { my $lastline = $output[$#output-1]; print "runjob mktextfm last output line: $lastline\n"; # it's too verbose to print the full mf run of every font. - # but if mktextfm failed, show that. + # but if mktextfm failed, show it. print `cat $Jobid.log` if $status != 0; - $status = 0; # do not worry if the bitmap failed, e.g., grtt10.mf. + $#status = 0; # do not worry if the bitmap failed, e.g., grtt10.mf. } else { print `cat $Jobid.log`; } close (TMP); system ("$RM -f /tmp/$Jobid.log; mv $Jobid.log /tmp"); # save last log - die "goodbye, exit status $status for $job\n" + die "*** goodbye, exit status $status for $job\n" if $status != 0; + die "*** goodbye, files could not be generated for $job\n" + if "@output" =~ /can't write on file/; } return $status; } @@ -5531,6 +5534,11 @@ sub PREHOOK_apa6 { &SYSTEM ("mkdir config pseudoTeX"); } +sub PREHOOK_apa7 { + print "PREHOOK_$package - subdirectories needed for dtx\n"; + &SYSTEM ("mkdir config"); +} + sub PREHOOK_cals { print "PREHOOK_$package - flatten only cals subdir\n"; &SYSTEM ("$MV cals/* ."); -- cgit v1.2.3