Makefile and rendered files

This commit is contained in:
Mattia Basaglia 2013-11-08 17:07:35 +01:00
parent 7cb4f01d1b
commit 1cdbcdf91a
95 changed files with 406 additions and 90 deletions

View file

@ -0,0 +1,30 @@
.....-----...
__ .-` `.
/ \` .:'--:.
( / \ `-.__..-;
| | `-..__ ., -
( '. \ _____\ )`-._ _-`
'\ __/ __\' / `:``''`
.|\_ ( / .-| |'.|
|' / ,'\ ( (WW| \W)j
.| | \_\_`/ ``-.
.--''''````-. |' l \__/
/ `. | `. -,______.-'
/ `.________.| `. /
( ,.--''>-',: |' | (
| | / (_) .| ,'),-``''-.
| .' | ,; |' / ,' `.
.| |. | (_) ;, '. (.( :
|' '| | (_) `'---'` `. `:`;
| '. / \ / `:. ; ':
|. `' | /-,_______\ ' ` .-; |
'| \_/ / | |\ `----'`.' .'
| ) / | | `--, \`''`
'. / | | | / l
`--_____--'| | | | ( |
`:._.` '. | | | | \ |
' .-. )| \ | \ `.___/
`---; ) )' \_______) \_______)
.:___-'


View file

@ -0,0 +1,30 @@
__ _.--''``''--..
/ \/ `.
( / \___ \
| | `'-. __ \
___ ( '. __`.'` \`. \
___ ( `. /\ ,. .'__\ / `:_\ \
( `-. `. `. / \_ __.` / .-| |'.|= \ |
`-. `-.`. `. : r__,' ( (WW| \W)j | |
`. `.\ _\ | | \_\_`/ ``-. / /
.--'''```-_`-, ` ( | | | \__/.` .`
/ ( ``` __ \ \| \ -,______.-'/ /
/ `-._ ( `.\ '. \ /'. .' .'
/ ,.--''>`-. `-. ` | `. ( | / / _
( | / 8Y8`_: `_:. | \ \ | l ( ,:' \
| .' | ( ( ( \ |\ | \ ) )
| .' | 8Y8 `---:.__-\ \ | `. `` .'
| | | 8Y8 \ \ j `'-..-'
| '. / \ / | |
| |.--' | /-,______| |
l | _/ / .-. | / \
\ '. / / ( (` / / \
__ \ | | | |\ `` _.' l
.' / \ |__/| | | `-._.-'( |
| (_ | | | | | | \ |
' `'-` | | \ | \ `.___/
`-.._________/ \_______) \_______)


View file

@ -0,0 +1,31 @@
.-'''-.
__ /` `. .''', .--.
,-'`__`. / Y X `.
.` / \ `Y U |
/ ( / \_ ...---.. .--. |
( | | ` '. .' `. j
( ( '. \ _____ _v` | / ,;
\ \ __/ __\ / `: | /.'/
\,.. \_ ( / .-| |'.| \ _.-'
_----_ /` ` ``.\ ( (WW| \W)j
,' `-. : _ ; \_\_`/ ``-.
/ `'. | .' `x \__/
( \ l '--' `.-,______.-'
( <:''-. \ ____`. \ /
\ `. `>-'` ``>- )(
,'``'.; \ / ( ) : / \
,' ' )| S `. <:' |
/ )| ( ) S ( ) `'--. `) |
( ..---. / | S S `-.._-' |
\ ( `X / \ S S/ \__/
`. `-..-'` ) | /-,_______\ \
.' ) _/ / | |\ \
| __ / / / | | `--, \
'. .' ) .' | | | | / l
`x_.-` _.-`\__/| | | | ( |
_ (. <: | | | | \ |
\`-._`> ) | \ | \ `.___/
`-.___..-' \_______) \_______)


View file

@ -28,4 +28,3 @@
`-.___..-' \_______) \_______)

View file

@ -0,0 +1,30 @@
__ __----__
/ \__..--'' `-__-__''-_
( / \ ``--,, `-.''''`
| | `-..__ .,\ `.
___ ( '. \ _____\ )`-_ `.
___ ( `. '\ __/ __\' / `:-.._ \
( `-. `. `. .|\_ ( / .-| |'.| ``'
`-. `-.`. `. |' ( ,'\ ( (WW| \W)j
..---'''':-`. `.\ _\ .|| ', \_\_`/ ``-.
,' .'` .'_`-, ` ( | |''. `. \__/
/ _ .' :' ( ``` __ \ \ | \ ._:7,______.-'
| .-'/ : .' .-`-._ ( `.\ '': `-\ /
'` / :' : .: .-''>`-. `-. ` | '. | (
- .' :' : / / _( `_: `_:. `. `;. \ \
| | .' : /| | (___( ( \ )\ ; |
.' .' | | | `. | \\\`---:.__-'') / )/ |
| | | | | | | /// |/ ' |
.' .' '.'.`; |/ \ / / \__/
| | | | |.| | /-,_______\ \
/ / ) | | '|' _/ / | |\ \
.:.-' .' .' | )/ / | | `--, \
/ | | / | | | | / l
.__.' /` :|/_/| | | | ( |
`-.___.-`; / ' | | | | \ |
.:_-' | \ | \ `.___/
\_______) \_______)


30
Main6/rarity.colored.txt Normal file
View file

@ -0,0 +1,30 @@
.... ,.----..
__ .-` / / _ `-.
/ \` ( ( ,'/ `.
( / \__ `-` .' /..-'`'-.
/| | `--___S' / )
A ( '. ______ ' .-'`
| \ \ | __\ / `: .'( __
.--:---, | :(\_ l / .-) |'.|\/ `(_ \
.' / `-. | : \ ( (WW| \W)j `.______/
.' | `. | '. \_\_`_| ``-.
| .' `, \ : \__/
.' | \ \ '. -,______.-'
| | .--. __________`.__ '. /
| | .' `.-' ./ _) | (
| `. | / A |\______-| \
'. '.' | A V | | |
| '.___.| V A | | |
| / | V \_______/ |
:. / / \ / \__/
___ .` '. (-' | /-,_______\ \
/ _ \'| r` '-. \ _/ / | |\ \
( (__/ | | \'-.__\/ / | | `--, \
\____/| l |\ | | | | / l
' `.__/ \__/| | | | ( |
`----' | | | | \ |
| \ | \ `.___/
\_______) \_______)


View file

@ -0,0 +1,30 @@
__ _____ _
/ \__..--"" ;-.",'/
( / \_ `.' / `.
| | ) `;. ,' / \ \
( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' |
|\_ ( / .-| |-.| `-,|
.| ( \ ( (WW| \W)j '
..-----, .|' ', \_\_`_| ``-.
.-` ..::. `,___ |, ._:7 \__/
,' .:::'':::.|.`.`-. |:'. \ ______.-'
.' .::' '::\`.`. `-._| \ \ `"7 /
/ ./:' ,.--''>-'\ `.`-.(`' `.`.._/ (
- :/:' | / \ `.( `. `._/ \
| :::' .' | * \|/`. ( |`-_./ |
.' ||| .' | /|\ *`.___.-' |
| ||| | | * |
| ':|| '. / \ * / \__/
| . ||| |.--' | /-,_______\ \
|/| ||| | _/ / | |\ \
` ) '::. '. / / | | `--, \
\ ||| | | | | | / l
`. ||| | _/| | | | ( |
`::|| | | | | | \ |
`-._| | \ | \ `.___/
\_______) \_______)


View file

@ -0,0 +1,29 @@
__ _____ _
/ \__..--"" ;-.",'/
( / \_ `.' / `.
| | ) `;. ,' / \ \
( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' |
|\_ ( / .-| |-.| `-,|
.| ( \ ( (WW| \W)j '
..-----, .|' ', \_\_`_| ``-.
.-` ..::. `,___ |, ._:7 \__/
,' .:::'':::.|.`.`-. |:'. \ ______.-'
.' .::' '::\`.`. `-._| \ \ `"7 /
/ ./:' ,.--''>-'\ `.`-.(`' `.`.._/ (
- :/:' | / \ `.( `. `._/ \
| :::' .' | * \|/`. ( |`-_./ |
.' ||| .' | /|\ *`.___.-' |
| ||| | | * |
| ':|| '. / \ * / \__/
| . ||| |.--' | /-,_______\ \
|/| ||| | _/ / | |\ \
` ) '::. '. / / | | `--, \
\ ||| | | | | | / l
`. ||| | _/| | | | ( |
`::|| | | | | | \ |
`-._| | \ | \ `.___/
\_______) \_______)

View file

@ -0,0 +1,30 @@
__ _____ _
/ \__..--"" ;-.",'/
( / \_ `.' / `.
| | ) `;. ,' / \ \
( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' |
|\_ ( / .-| |-.| `-,|
.| ( \ ( (WW| \W)j '
..-----, .|' ', \_\_`_| ``-.
.-` ..::. `, |, ._:7 \__/
,' .:::'':::. \ |:'. \ ______.-'
.' .::' ':: :._______| \ \ `"7 /
/ ./:' ,.--''>-' ' `.`.._/ (
- :/:' | / * `. `._/ \
| :::' .' | * \|/ `-_./ |
.' ||| .' | /|\ * |
| ||| | | * |
| ':|| '. / \ * / \__/
| . ||| |.--' | /-,_______\ \
|/| ||| | _/ / | |\ \
` ) '::. '. / / | | `--, \
\ ||| | | | | | / l
`. ||| | _/| | | | ( |
`::|| | | | | | \ |
`-._| | \ | \ `.___/
\_______) \_______)


View file

@ -0,0 +1,29 @@
__ _____ _
/ \__..--"" ;-.",'/
( / \_ `.' / `.
| | ) `;. ,' / \ \
( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' |
|\_ ( / .-| |-.| `-,|
.| ( \ ( (WW| \W)j '
..-----, .|' ', \_\_`_| ``-.
.-` ..::. `, |, ._:7 \__/
,' .:::'':::. \ |:'. \ ______.-'
.' .::' ':: :._______| \ \ `"7 /
/ ./:' ,.--''>-' ' `.`.._/ (
- :/:' | / * `. `._/ \
| :::' .' | * \|/ `-_./ |
.' ||| .' | /|\ * |
| ||| | | * |
| ':|| '. / \ * / \__/
| . ||| |.--' | /-,_______\ \
|/| ||| | _/ / | |\ \
` ) '::. '. / / | | `--, \
\ ||| | | | | | / l
`. ||| | _/| | | | ( |
`::|| | | | | | \ |
`-._| | \ | \ `.___/
\_______) \_______)

29
Makefile Normal file
View file

@ -0,0 +1,29 @@
PONIES= Main6/applejack-nohat \
Main6/fluttershy \
Main6/pinkie-pie \
Main6/rainbow-dash \
Main6/rarity \
Main6/twilight-alicorn \
Main6/twilight-unicorn \
Other/derpy \
Other/trixie-hat
SCRIPT=$(PWD)/render_parts.php
OUT_PLAIN=$(addsuffix .plain.txt,$(PONIES))
OUT_COLOR=$(addsuffix .colored.txt,$(PONIES))
find_deps=$(subst ;,\;,$(wildcard $(1)/*))
all: $(OUT_COLOR) $(OUT_PLAIN)
%.colored.txt : $(SCRIPT)
%.colored.txt : $(PWD)/Makefile
%.colored.txt : $(call find_deps, $*)
$(SCRIPT) $* >$*.colored.txt
%.plain.txt : $(SCRIPT)
%.plain.txt : $(PWD)/Makefile
%.plain.txt : $(call find_deps, $*)
$(SCRIPT) $* >$*.plain.txt nocolor

31
Other/derpy.colored.txt Normal file
View file

@ -0,0 +1,31 @@
__ __----__
/ \__..--'' _-__''-_
( / \ `-.''''`
| | `-..__ ., `.
___ ( '. \ _____\ )`-_ `.
___ ( `. '\ __/ __\' /-`:-.._ \
( `-. `. `. .|\_ ( / .-| |W)| ``'
`-. `-.`. `. |' ( ,'\ ( (WW| \` j
..---'''''-`. `.\ _\ .| ', \_\_`/ ``-.
,' _`-, ` ( | |' `. \__/
/ _ ( ``` __ \ \ | ._:7,______.-'
| .-'/ `-._ ( `.\ '': \ /
'` / .-''>`-. `-. ` | | (
- / / `_: `_:. `. . \ \
| | | o()( ( \ )\ ; |
.' `. | Oo `---:.__-'') / )/ |
| | | ()o |/ ' |
.' |/ \ o / \__/
| , .| | /-,_______\ \
/ / ) |' _/ / | |\ \
.:.-' .' )/ / | | `--, \
/ . / | | | | / l
.__.' , :|/_/| | | | ( |
`-.___.-`; / ' | | | | \ |
.:_-' | \ | \ `.___/
\_______) \_______)


View file

@ -26,3 +26,5 @@
.:_-' | \ | \ `.___/
\_______) \_______)

View file

@ -0,0 +1,35 @@
___...----..
..''`` x `.
/ * x `.
| \_\_\ . X \
: .' '. * `X' |
l / '. ' ` .
V | * . |
| `X' |.
_..--j X ' ` ` `''--...
<'__ * x * .>
/``'''----____ ___..''
( \_ ( /.-`|'|`'| .' |
( \,'\ ((WW | \W)j | / .
..---'''''--- ( | \_\_ / ``-.: :_/|
,' `'. ( | \__/ `---'
/ _ '. \ '. -,______.-'
| .-'/ :__________`. | /
'` - .-''>-' \ '. (
| / / . . '. '. \
| | | /|`X' ':-._) | |
.' | | ( :'|` `-___.' |
| | | \ `|> |
| | / \ ``' / \__/
'. .'' | /-,_______\ \
| | _/ / | |\ \
| | / / | | `--, \
.' : | | | | / l
.__..' , :\__/| | | | ( |
`-.___.-`; / | | | | \ |
.:_-' | \ | \ `.___/
\_______) \_______)


View file

@ -0,0 +1,34 @@
___...----..
..''`` x `.
/ * x `.
| \_\_\ . X \
: .' '. * `X' |
l / '. ' ` .
V | * . |
| `X' |.
_..--j X ' ` ` `''--...
<'__ * x * .>
/``'''----____ ___..''
( \_ ( /.-`|'|`'| .' |
( \,'\ ((WW | \W)j | / .
..---'''''--- ( | \_\_ / ``-.: :_/|
,' `'. ( | \__/ `---'
/ _ '. \ '. -,______.-'
| .-'/ :__________`. | /
'` - .-''>-' \ '. (
| / / . . '. '. \
| | | /|`X' ':-._) | |
.' | | ( :'|` `-___.' |
| | | \ `|> |
| | / \ ``' / \__/
'. .'' | /-,_______\ \
| | _/ / | |\ \
| | / / | | `--, \
.' : | | | | / l
.__..' , :\__/| | | | ( |
`-.___.-`; / | | | | \ |
.:_-' | \ | \ `.___/
\_______) \_______)

View file

@ -1,29 +0,0 @@
__ __----__
/ \__..--'' `-__-__''-_
( / \ ``--,, `-.''''`
| | `-..__ .,\ `.
( '. \ _____`\ )`-_ `.
'\ __/ __\ ' / `:-.._ \
.|\_ ( / .-| |-.| ``'
|' ( \ ( (WW| \W)j
..---'''':----, .|| ', \_\_`/ ``-.
,' .'` .'``-`,___ |''. `. \__/
/ _ .' :' _ `|.`.`-. | \ ._:7,______.-'
| .-'/ : .' .-' `. \`.`. `-.__': `-\ /
'` / :' : .: .-''>-'\ `.`-.(`-| '. | (
- .' :' : / / _( \ `.( `. `;. \ \
| | .' : /| | (____`. ( |\ )\ ; |
.' .' | | | `. | \\\ `.___.-' ) / )/ |
| | | | | | | /// |/ ' |
.' .' '.'.`; |/ \ / / ' \__/
| | | | |.| | /-,_______\ \
/ / ) | | '|' _/ / | |\ \
.:.-' .' .' | )/ / | | `--, \
/ | | / | | | | / l
.__.' /` :|/_/| | | | ( |
`-.___.-`; / ' | | | | \ |
.:_-' | \ | \ `.___/
\_______) \_______)

View file

@ -1,29 +0,0 @@
__ _____ _
/ \__..--"" ;-.",'/
( / \_ `.' / `.
| | ) `;. ,' / \ \
( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' |
|\_ ( / .-| |-.| `-,|
.| ( \ ( (WW| \W)j '
..-----, .|' ', \_\_`_| ``-.
.-` ..::. `,___ |, ._:7 \__/
,' .:::'':::.|.`.`-. |:'. \ -,______.-'
.' .::' '::\`.`. `-._| \ \ `"7 /
/ ./:' ,.--''>-'\ `.`-.(`| `.`.._/ (
- :/:' | / \ `.( `. `._/ \
| :::' .' | * \|/`. ( |`-_./ |
.' ||| .' | /|\ *`.___.-' |
| ||| | | * |
| ':|| '. / \ * / \__/
| . ||| |.--' | /-,_______\ \
|/| ||| | _/ / | |\ \
` ) '::. '. / / | | `--, \
\ ||| | | | | | / l
`. ||| | _/| | | | ( |
`::|| | | | | | \ |
`-._| | \ | \ `.___/
\_______) \_______)

View file

@ -1,29 +0,0 @@
__ _____ _
/ \__..--"" ;-.",'/
( / \_ `.' / `.
| | ) `;. ,' / \ \
( '. /___/_j_ / ) | )
'\ / __\ ``::'/__' |
|\_ ( / .-| |-.| `-,|
.| ( \ ( (WW| \W)j '
..-----, .|' ', \_\_`_| ``-.
.-` ..::. `, |, ._:7 \__/
,' .:::'':::. \ |:'. \ -,______.-'
.' .::' ':: :._______| \ \ `"7 /
/ ./:' ,.--''>-' ' `.`.._/ (
- :/:' | / * `. `._/ \
| :::' .' | * \|/ `-_./ |
.' ||| .' | /|\ * |
| ||| | | * |
| ':|| '. / \ * / \__/
| . ||| |.--' | /-,_______\ \
|/| ||| | _/ / | |\ \
` ) '::. '. / / | | `--, \
\ ||| | | | | | / l
`. ||| | _/| | | | ( |
`::|| | | | | | \ |
`-._| | \ | \ `.___/
\_______) \_______)

View file

@ -1,6 +1,7 @@
#!/usr/bin/php
<?php
$dir = isset($argv[1]) ? $argv[1] : getcwd();
$print_color = !isset($argv[2]) || $argv[2] != 'nocolor';
$dir_files = scandir($dir);
$files = array();
$maxw = 0;
@ -42,10 +43,13 @@ foreach($chars as $line)
{
if ( is_null($char) )
echo ' ';
else
else if ( $print_color )
echo "\x1b[$char[color]m$char[char]";
else
echo $char['char'];
}
echo "\n";
}
echo "\x1b[0m\n";
if ( $print_color )
echo "\x1b[0m\n";