dev/dist.sh adds metadata to tty ponies

This commit is contained in:
Mattias Andrée 2012-10-30 21:39:48 +01:00
parent d8fd0d9975
commit acda7054f4

View file

@ -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~"
} }