mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Update Pakefile with proper path names
Add HELP section to the README
This commit is contained in:
parent
0995f3d061
commit
7b909c6cf1
@ -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
|
||||||
php ./bin/resume.php --source resume/sample.md --pdf
|
php ./bin/resume.php --source resume/sample.md --pdf
|
||||||
|
|
||||||
## Options
|
## Help
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
Choose a template with the -t option.
|
Choose a template with the -t option.
|
||||||
|
|
||||||
|
20
pakefile
20
pakefile
@ -40,7 +40,7 @@ function run_test() {
|
|||||||
|
|
||||||
function run_version() {
|
function run_version() {
|
||||||
$composer = json_decode(file_get_contents('composer.json'));
|
$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";
|
echo str_repeat("=", 80) . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,14 +56,14 @@ function run_lint() {
|
|||||||
|
|
||||||
function run_phar()
|
function run_phar()
|
||||||
{
|
{
|
||||||
echo " * Construction phar and moving to fb\n";
|
echo " * Construction phar and moving to ./bin/md2resume\n";
|
||||||
$command =
|
$command =
|
||||||
'rm -f fb && rm -f fb.phar &&'
|
'rm -f ./bin/md2resume && rm -f ./bin/md2resume.phar &&'
|
||||||
. 'php -dphar.readonly=0 build/empir make fb.phar working.php . --exclude="'
|
. 'php -dphar.readonly=0 build/empir make ./bin/md2resume.phar working.php . --exclude="'
|
||||||
. '*.git/*|*.gitignore|*test*|*Tests*|*.md|*/doc/*|*.lock|*token.txt|pakefile'
|
. '*.git/*|*.gitignore|*test*|*Tests*|*.md|*/doc/*|*.lock|*token.txt|pakefile'
|
||||||
. '|.*|build/*|*.markdown|*.phar|*LICENSE|*AUTHORS|*CHANGELOG|*.dist|*.tpl'
|
. '|.*|build/*|*.markdown|*.phar|*LICENSE|*AUTHORS|*CHANGELOG|*.dist|*.tpl'
|
||||||
. '" && chmod a+x fb.phar'
|
. '" && chmod a+x ./bin/md2resume.phar'
|
||||||
. ' && mv fb.phar fb';
|
. ' && mv ./bin/md2resume.phar ./bin/md2resume';
|
||||||
passthru($command);
|
passthru($command);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,9 +77,9 @@ function run_fixer()
|
|||||||
{
|
{
|
||||||
echo "\n * Running php-cs-fixer\n";
|
echo "\n * Running php-cs-fixer\n";
|
||||||
passthru(
|
passthru(
|
||||||
"php-cs-fixer fix ./working.php"
|
"php-cs-fixer fix ./bin/resume2.php"
|
||||||
. " && php-cs-fixer fix ./src/FogBugz/Cli/"
|
. " && php-cs-fixer fix ./src/Resume/Cli/"
|
||||||
. " && php-cs-fixer fix ./src/FogBugz/Command/"
|
. " && php-cs-fixer fix ./src/Resume/Command/"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ function run_readme()
|
|||||||
}
|
}
|
||||||
|
|
||||||
function run_mv() {
|
function run_mv() {
|
||||||
exec('cp ./fb ~/bin/fb');
|
exec('cp ./bin/md2resume ~/bin/md2resume');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* End of pakefile */
|
/* End of pakefile */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user