Update Pakefile with proper path names

Add HELP section to the README
This commit is contained in:
Craig Davis 2014-01-12 07:52:47 -06:00
parent 0995f3d061
commit 7b909c6cf1
2 changed files with 13 additions and 11 deletions

View File

@ -28,7 +28,9 @@ at the [blog post for the project][blog].
php ./bin/resume.php --source resume/sample.md
php ./bin/resume.php --source resume/sample.md --pdf
## Options
## Help
## Examples
Choose a template with the -t option.

View File

@ -40,7 +40,7 @@ function run_test() {
function run_version() {
$composer = json_decode(file_get_contents('composer.json'));
echo "\n Building FogBugz Command Line Client version " . $composer->version . "\n";
echo "\n Building Markdown Resume Builder version " . $composer->version . "\n";
echo str_repeat("=", 80) . "\n";
}
@ -56,14 +56,14 @@ function run_lint() {
function run_phar()
{
echo " * Construction phar and moving to fb\n";
echo " * Construction phar and moving to ./bin/md2resume\n";
$command =
'rm -f fb && rm -f fb.phar &&'
. 'php -dphar.readonly=0 build/empir make fb.phar working.php . --exclude="'
'rm -f ./bin/md2resume && rm -f ./bin/md2resume.phar &&'
. 'php -dphar.readonly=0 build/empir make ./bin/md2resume.phar working.php . --exclude="'
. '*.git/*|*.gitignore|*test*|*Tests*|*.md|*/doc/*|*.lock|*token.txt|pakefile'
. '|.*|build/*|*.markdown|*.phar|*LICENSE|*AUTHORS|*CHANGELOG|*.dist|*.tpl'
. '" && chmod a+x fb.phar'
. ' && mv fb.phar fb';
. '" && chmod a+x ./bin/md2resume.phar'
. ' && mv ./bin/md2resume.phar ./bin/md2resume';
passthru($command);
}
@ -77,9 +77,9 @@ function run_fixer()
{
echo "\n * Running php-cs-fixer\n";
passthru(
"php-cs-fixer fix ./working.php"
. " && php-cs-fixer fix ./src/FogBugz/Cli/"
. " && php-cs-fixer fix ./src/FogBugz/Command/"
"php-cs-fixer fix ./bin/resume2.php"
. " && php-cs-fixer fix ./src/Resume/Cli/"
. " && php-cs-fixer fix ./src/Resume/Command/"
);
}
@ -109,7 +109,7 @@ function run_readme()
}
function run_mv() {
exec('cp ./fb ~/bin/fb');
exec('cp ./bin/md2resume ~/bin/md2resume');
}
/* End of pakefile */