mirror of
https://github.com/erkin/ponysay
synced 2024-11-23 11:53:14 +00:00
fix settings for remastering
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
d36a208a3c
commit
20a34dcd3d
1 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue