diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-06-02 23:46:28 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-06-02 23:48:02 -0400 |
commit | d90c47ec2cd883204d964a3dc0362bac48f847fc (patch) | |
tree | 5e126af17c46a5f98b906be780215dc10ce1f742 | |
parent | 2cf52df0d8e94232c9e41c3effac6a5a4b5953c8 (diff) |
made the response actually standard
-rw-r--r-- | minimun.spec | 6 | ||||
-rw-r--r-- | orig/minimun | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/minimun.spec b/minimun.spec index 6b6bc1c..6539b50 100644 --- a/minimun.spec +++ b/minimun.spec @@ -1,7 +1,7 @@ Summary: A perl cgi/pdfTeX script for doc generation Name: minimun Version: 1.0 -Release: 4 +Release: 5 License: GPL, Unknown Source: https://hrhr.dev/src/minimun.tar.gz URL: https://git.hrhr.dev/minimun/about @@ -10,6 +10,10 @@ Vendor: Holden Rohrer Packager: Holden Rohrer <hr@hrhr.dev> BuildArch: noarch Requires: perl +Requires: texlive-pdftex +Requires: texlive-amsfonts +Requires: texlive-metafont +Requires: texlive-mfware Requires(pre): shadow-utils BuildRequires: make diff --git a/orig/minimun b/orig/minimun index d4e2b7d..153bbb6 100644 --- a/orig/minimun +++ b/orig/minimun @@ -42,7 +42,8 @@ else{ say $fh "\\bye"; -system ('/usr/bin/pdftex', $filename); +system ('/usr/bin/pdftex', $filename, '>/dev/null'); +unlink "$filename.log"; open(DOC, '<', "$filename.pdf") or do { print "Content-type: text/html\n"; print "Status: 400 Bad Request Error\n\n"; @@ -52,4 +53,4 @@ open(DOC, '<', "$filename.pdf") or do { print "Content-type: application/pdf\n\n"; print <DOC>; close(DOC); -unlink "$filename.pdf", "$filename.log"; +unlink "$filename.pdf"; |