summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/compile10
-rw-r--r--bin/iac4
2 files changed, 14 insertions, 0 deletions
diff --git a/bin/compile b/bin/compile
new file mode 100644
index 0000000..a36967e
--- /dev/null
+++ b/bin/compile
@@ -0,0 +1,10 @@
+#!/usr/bin/env php
+<?php
+
+unlink(getcwd() . '/iac.phar');
+#chdir(dirname(__DIR__));
+#exec('composer install --no-dev');
+
+$phar = new Phar('iac.phar');
+$phar->setStub(Phar::createDefaultStub());
+$phar->buildFromDirectory(dirname(__DIR__), '/(src|vendor|index\.php)/');
diff --git a/bin/iac b/bin/iac
new file mode 100644
index 0000000..b645010
--- /dev/null
+++ b/bin/iac
@@ -0,0 +1,4 @@
+#!/usr/bin/env php
+<?php
+
+require dirname(__DIR__) . '/index.php';