mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 12:27:59 +01:00
update dist.sh
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
9fb1cb4adf
commit
a61d7df57b
1 changed files with 30 additions and 20 deletions
50
dev/dist.sh
50
dev/dist.sh
|
@ -4,37 +4,47 @@
|
||||||
# or dev/dist.sh pdfmanual
|
# or dev/dist.sh pdfmanual
|
||||||
# or dev/dist.sh tag VERSION [OTHER OPTIONS FOR `git tag`]
|
# or dev/dist.sh tag VERSION [OTHER OPTIONS FOR `git tag`]
|
||||||
# or dev/dist.sh beigepdf
|
# or dev/dist.sh beigepdf
|
||||||
|
# or dev/dist.sh remaster
|
||||||
|
|
||||||
|
|
||||||
ttyponies()
|
ttyponies()
|
||||||
{
|
{
|
||||||
defaultoutparams=--colourful y --left - --right - --top - --bottom - --balloon n --fullcolour y
|
defaultoutparams=--colourful y --left - --right - --top - --bottom - --balloon n --fullcolour y
|
||||||
mkdir -p "ttyponies"
|
for x in '' 'extra'; do
|
||||||
for pony in $(ls --color=no "ponies/"); do
|
mkdir -p "${x}ttyponies"
|
||||||
if [ ! "$pony" = '.info' ]; then
|
for pony in $(find "${x}ponies/" | grep -v '/\.' | grep '\.pony$' | sed -e "s_^${x}ponies/__"); do
|
||||||
echo "building ttypony: $pony"
|
echo "building ${x}ttypony: $pony"
|
||||||
if [ "`readlink "ponies/$pony"`" = '' ]; then
|
if [ ! -L "${x}ponies/$pony" ]; then
|
||||||
ponytool --import ponysay --file "ponies/$pony" --export ponysay --platform linux --file "ttyponies/$pony" $defaultoutparams
|
ponytool --import ponysay --file "${x}ponies/$pony" \
|
||||||
git add "ttyponies/$pony"
|
--export ponysay --platform linux --file "${x}ttyponies/$pony" $defaultoutparams
|
||||||
|
git add "${x}ttyponies/$pony"
|
||||||
else
|
else
|
||||||
ln -sf `readlink "ponies/$pony"` "ttyponies/$pony"
|
ln -sf "$(readlink "${x}ponies/$pony")" "${x}ttyponies/$pony"
|
||||||
git add "ttyponies/$pony"
|
git add "${x}ttyponies/$pony"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
mkdir -p "extrattyponies"
|
done
|
||||||
for pony in $(ls --color=no "extraponies/"); do
|
}
|
||||||
if [ ! "$pony" = '.info' ]; then
|
|
||||||
echo "building extrattypony: $pony"
|
|
||||||
if [ "`readlink "extraponies/$pony"`" = '' ]; then
|
remaster()
|
||||||
ponytool --import ponysay --file "extraponies/$pony" --export ponysay --platform linux --file "extrattyponies/$pony" $defaultoutparams
|
{
|
||||||
git add "extrattyponies/$pony"
|
defaultoutparams=--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
|
||||||
|
git add "${x}ponies/$pony" "${x}ttyponies/$pony"
|
||||||
else
|
else
|
||||||
ln -sf `readlink "extraponies/$pony"` "extrattyponies/$pony"
|
ln -sf "$(readlink "${x}ponies/$pony")" "${x}ttyponies/$pony"
|
||||||
git add "extrattyponies/$pony"
|
git add "${x}ttyponies/$pony"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue