summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Rodrigues Couto <gabriel@rodriguescouto.com.br>2016-02-23 10:56:54 -0300
committerGabriel Rodrigues Couto <gabriel@rodriguescouto.com.br>2016-02-23 10:56:54 -0300
commit670c9506a8970b14b55716963724fea9b206f297 (patch)
tree95c612b5d79d13cd9df2b2d0e96d5d9c708ca6dd
parented9a957b3e53f59ff370e550820bdb911344a726 (diff)
parentee4dadfd144c7448903b40e191fe177c06c3f2e7 (diff)
downloadphp-terminal-gameboy-emulator-670c9506a8970b14b55716963724fea9b206f297.zip
php-terminal-gameboy-emulator-670c9506a8970b14b55716963724fea9b206f297.tar.gz
php-terminal-gameboy-emulator-670c9506a8970b14b55716963724fea9b206f297.tar.bz2
Merge pull request #9 from henriquemoody/bin
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 9674929..004f18e 100644
--- a/README.md
+++ b/README.md
@@ -38,8 +38,8 @@ about that Windows guys :disappointed:
```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": {