mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 12:27:59 +01:00
dev/dist.sh adds metadata to tty ponies
This commit is contained in:
parent
d8fd0d9975
commit
acda7054f4
1 changed files with 9 additions and 0 deletions
|
@ -13,7 +13,11 @@ ttyponies()
|
||||||
if [ ! "$pony" = '.info' ]; then
|
if [ ! "$pony" = '.info' ]; then
|
||||||
echo "building ttypony: $pony"
|
echo "building ttypony: $pony"
|
||||||
if [ "`readlink "ponies/$pony"`" = '' ]; then
|
if [ "`readlink "ponies/$pony"`" = '' ]; then
|
||||||
|
./ponysay-tool.py --edit-stash "ponies/$pony" > ".pony.metadata~"
|
||||||
|
./ponysay-tool.py --edit-rm "ponies/$pony"
|
||||||
ponysay2ttyponysay < "ponies/$pony" | tty2colourfultty -c 1 > "ttyponies/$pony"
|
ponysay2ttyponysay < "ponies/$pony" | tty2colourfultty -c 1 > "ttyponies/$pony"
|
||||||
|
./ponysay-tool.py --edit-apply "ponies/$pony" < ".pony.metadata~"
|
||||||
|
./ponysay-tool.py --edit-apply "ttyponies/$pony" < ".pony.metadata~"
|
||||||
git add "ttyponies/$pony"
|
git add "ttyponies/$pony"
|
||||||
else
|
else
|
||||||
ln -sf `readlink "ponies/$pony"` "ttyponies/$pony"
|
ln -sf `readlink "ponies/$pony"` "ttyponies/$pony"
|
||||||
|
@ -26,7 +30,11 @@ ttyponies()
|
||||||
if [ ! "$pony" = '.info' ]; then
|
if [ ! "$pony" = '.info' ]; then
|
||||||
echo "building extrattypony: $pony"
|
echo "building extrattypony: $pony"
|
||||||
if [ "`readlink "extraponies/$pony"`" = '' ]; then
|
if [ "`readlink "extraponies/$pony"`" = '' ]; then
|
||||||
|
./ponysay-tool.py --edit-stash "extraponies/$pony" > ".pony.metadata~"
|
||||||
|
./ponysay-tool.py --edit-rm "extraponies/$pony"
|
||||||
ponysay2ttyponysay < "extraponies/$pony" | tty2colourfultty -c 1 > "extrattyponies/$pony"
|
ponysay2ttyponysay < "extraponies/$pony" | tty2colourfultty -c 1 > "extrattyponies/$pony"
|
||||||
|
./ponysay-tool.py --edit-apply "extraponies/$pony" < ".pony.metadata~"
|
||||||
|
./ponysay-tool.py --edit-apply "extrattyponies/$pony" < ".pony.metadata~"
|
||||||
git add "extrattyponies/$pony"
|
git add "extrattyponies/$pony"
|
||||||
else
|
else
|
||||||
ln -sf `readlink "extraponies/$pony"` "extrattyponies/$pony"
|
ln -sf `readlink "extraponies/$pony"` "extrattyponies/$pony"
|
||||||
|
@ -34,6 +42,7 @@ ttyponies()
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
rm ".pony.metadata~"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue