debian/control: bump Standards-Version to 4.4.0
[tweeper.git] / tweeper
1 #!/usr/bin/env php
2 <?php
3
4 /**
5  * @file
6  * CLI file to run tweeper.
7  */
8
9 if (preg_match('/' . preg_quote('/vendor/bin', '/') . '$/', __DIR__)) {
10   /*
11    * This covers the case of tweeper running from a "vendor/bin" directory in
12    * a composer setup, but with the tweeper executable _not_ being a symlink.
13    *
14    * This can happen when the filesystem does not support symlinks.
15    */
16   $package_name = 'ao2/tweeper';
17   require __DIR__ . '/../' . $package_name . '/tweeper.php';
18 }
19 else {
20   /* For the other cases look at the autoload.php required by tweeper.php */
21   require __DIR__ . '/tweeper.php';
22 }