forked from async-aws/aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate
More file actions
executable file
·27 lines (22 loc) · 772 Bytes
/
generate
File metadata and controls
executable file
·27 lines (22 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env php
<?php
$generatorDir = __DIR__.'/src/CodeGenerator';
if (!file_exists($generatorDir.'/generate.php')) {
echo "Unable to find the `generate.php` script in `/src/CodeGenerator/`.\n";
exit(1);
}
if (!file_exists(__DIR__.'/vendor/autoload.php')) {
echo "Run `composer install` before you run the `generate` script.\n";
exit(1);
}
require __DIR__.'/vendor/autoload.php';
if (!getenv('ASYNC_AWS_GENERATE_MANIFEST')) {
putenv('ASYNC_AWS_GENERATE_MANIFEST='.__DIR__.'/manifest.json');
}
if (!getenv('ASYNC_AWS_GENERATE_SRC')) {
putenv('ASYNC_AWS_GENERATE_SRC='.__DIR__.'/src');
}
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {
putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=deprecations=1');
}
require $generatorDir.'/generate.php';