From 35eb8cb456bfa1c62ee569465283fd6324c177d8 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Wed, 15 Jan 2020 14:50:42 -0500 Subject: added minimun perl script, uwsgi ini, and barebones format --- format.tex | 1 + minimun | 25 +++++++++++++++++++++++++ minimun.ini | 5 +++++ 3 files changed, 31 insertions(+) create mode 100644 format.tex create mode 100755 minimun create mode 100644 minimun.ini 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 = ){ + $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 (){ + 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 -- cgit