aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--format.tex1
-rwxr-xr-xminimun25
-rw-r--r--minimun.ini5
3 files changed, 31 insertions, 0 deletions
diff --git a/format.tex b/format.tex
new file mode 100644
index 0000000..9789bd0
--- /dev/null
+++ b/format.tex
@@ -0,0 +1 @@
+bruh moment\par
diff --git a/minimun b/minimun
new file mode 100755
index 0000000..92abe33
--- /dev/null
+++ b/minimun
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+use IPC::Run qw(run);
+
+my ($in, $out);
+
+$in .= "\\relax\n";
+
+open(FORMAT, '<', 'format.tex');
+while (my $line = <FORMAT>){
+ $in .= $line;
+}
+close(FORMAT);
+
+$in .= "bruh\n";
+$in .= "\\bye\n";
+
+run ['/usr/bin/pdftex'], '<', \$in, '>', \$out;
+print "Content-type: application/pdf\n\n";
+open(DOC, '<', 'texput.pdf');
+while (<DOC>){
+ print;
+}
diff --git a/minimun.ini b/minimun.ini
new file mode 100644
index 0000000..9b6d890
--- /dev/null
+++ b/minimun.ini
@@ -0,0 +1,5 @@
+[uwsgi]
+master = true
+plugins = cgi
+socket = 127.0.0.1:8080
+cgi = /home/czar/minimun/minimun