fix settings for remastering

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-04-01 21:52:28 +02:00
parent d36a208a3c
commit 20a34dcd3d

View file

@ -29,15 +29,16 @@ ttyponies()
remaster()
{
defaultoutparams="--colourful y --left - --right - --top - --bottom - --balloon n --fullcolour y"
xtermoutparams="--left - --right - --top - --bottom - --balloon n"
linuxoutparams="--colourful y --left - --right - --top - --bottom - --balloon n --fullcolour y"
for x in '' 'extra'; do
mkdir -p "${x}ttyponies"
for pony in $(find "${x}ponies/" | grep -v '/\.' | grep '\.pony$' | sed -e "s_^${x}ponies/__"); do
echo "remastering ${x}pony: $pony"
if [ ! -L "${x}ponies/$pony" ]; then
ponytool --import ponysay --file "${x}ponies/$pony" \
--export ponysay --file "${x}ponies/$pony" $defaultoutparams \
--export ponysay --platform linux --file "${x}ttyponies/$pony" $defaultoutparams
--export ponysay --file "${x}ponies/$pony" $xtermoutparams \
--export ponysay --platform linux --file "${x}ttyponies/$pony" $linuxoutparams
git add "${x}ponies/$pony" "${x}ttyponies/$pony"
else
ln -sf "$(readlink "${x}ponies/$pony")" "${x}ttyponies/$pony"