Remove legacy phar file build and update composer tooling (#63)

Simplify the build tooling:
* Remove phar build, update tooling to composer
* Remove legacy version tagging system
* Fix incorrect readme generation
This commit is contained in:
Craig Davis
2017-10-19 16:42:54 -07:00
committed by GitHub
parent b687052273
commit 1686262960
14 changed files with 230 additions and 1019 deletions

20
build/update_readme.php Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env php
<?php
/**
* Run the markdown resume and update the readme with the generated help
*/
$baseDir = dirname(__DIR__);
$startPoint = '## Help';
$endPoint = '## Examples';
$readme = file_get_contents('README.md');
$help = shell_exec('php '.$baseDir.'/bin/md2resume list --no-interaction');
$output = preg_replace(
'/('.preg_quote($startPoint).')(.*)('.preg_quote($endPoint).')/si',
"$1\n```\n" . $help . "\n```\n$3",
$readme
);
file_put_contents($baseDir.'/README.md', $output);
/* End of file updated_readme.php */