summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrique Moody <henriquemoody@gmail.com>2016-02-23 10:10:50 -0300
committerHenrique Moody <henriquemoody@gmail.com>2016-02-23 10:10:50 -0300
commitee4dadfd144c7448903b40e191fe177c06c3f2e7 (patch)
tree4fdaf596ae1d5c8f56f7fc7f03192af36c218ae6
parent22de1d58616e9f6613bd535083bb8ada9ed839dc (diff)
downloadphp-terminal-gameboy-emulator-ee4dadfd144c7448903b40e191fe177c06c3f2e7.zip
php-terminal-gameboy-emulator-ee4dadfd144c7448903b40e191fe177c06c3f2e7.tar.gz
php-terminal-gameboy-emulator-ee4dadfd144c7448903b40e191fe177c06c3f2e7.tar.bz2
Create `bin/php-gameboy` executable
-rw-r--r--README.md4
-rwxr-xr-xbin/php-gameboy4
-rw-r--r--composer.json1
3 files changed, 7 insertions, 2 deletions
diff --git a/README.md b/README.md
index e270aa0..a9240f7 100644
--- a/README.md
+++ b/README.md
@@ -35,8 +35,8 @@ You will need a good terminal! Tested on MacOSX and Linux. Sorry Windows guys :-
```bash
$ composer install -o
-$ php boot.php drmario.rom
-$ php boot.php pokemon.rom
+$ bin/php-gameboy drmario.rom
+$ bin/php-gameboy pokemon.rom
```
## Controls
diff --git a/bin/php-gameboy b/bin/php-gameboy
new file mode 100755
index 0000000..3a541e8
--- /dev/null
+++ b/bin/php-gameboy
@@ -0,0 +1,4 @@
+#!/usr/bin/env php
+<?php
+
+require __DIR__.'/../boot.php';
diff --git a/composer.json b/composer.json
index 3ff9240..4fce32c 100644
--- a/composer.json
+++ b/composer.json
@@ -14,6 +14,7 @@
"php": ">=5.6.0",
"whatthejeff/drawille": "^1.0"
},
+ "bin": ["bin/php-gameboy"],
"require-dev": {
},
"autoload": {