mirror of
https://github.com/erkin/ponysay.git
synced 2025-01-31 18:36:43 +01: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()
|
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
|
for x in '' 'extra'; do
|
||||||
mkdir -p "${x}ttyponies"
|
mkdir -p "${x}ttyponies"
|
||||||
for pony in $(find "${x}ponies/" | grep -v '/\.' | grep '\.pony$' | sed -e "s_^${x}ponies/__"); do
|
for pony in $(find "${x}ponies/" | grep -v '/\.' | grep '\.pony$' | sed -e "s_^${x}ponies/__"); do
|
||||||
echo "remastering ${x}pony: $pony"
|
echo "remastering ${x}pony: $pony"
|
||||||
if [ ! -L "${x}ponies/$pony" ]; then
|
if [ ! -L "${x}ponies/$pony" ]; then
|
||||||
ponytool --import ponysay --file "${x}ponies/$pony" \
|
ponytool --import ponysay --file "${x}ponies/$pony" \
|
||||||
--export ponysay --file "${x}ponies/$pony" $defaultoutparams \
|
--export ponysay --file "${x}ponies/$pony" $xtermoutparams \
|
||||||
--export ponysay --platform linux --file "${x}ttyponies/$pony" $defaultoutparams
|
--export ponysay --platform linux --file "${x}ttyponies/$pony" $linuxoutparams
|
||||||
git add "${x}ponies/$pony" "${x}ttyponies/$pony"
|
git add "${x}ponies/$pony" "${x}ttyponies/$pony"
|
||||||
else
|
else
|
||||||
ln -sf "$(readlink "${x}ponies/$pony")" "${x}ttyponies/$pony"
|
ln -sf "$(readlink "${x}ponies/$pony")" "${x}ttyponies/$pony"
|
||||||
|
|
Loading…
Reference in a new issue