update dist.sh

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2013-04-01 21:43:49 +02:00
parent 9fb1cb4adf
commit a61d7df57b

View file

@ -4,36 +4,46 @@
# 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 done
mkdir -p "extrattyponies" }
for pony in $(ls --color=no "extraponies/"); do
if [ ! "$pony" = '.info' ]; then
echo "building extrattypony: $pony" remaster()
if [ "`readlink "extraponies/$pony"`" = '' ]; then {
ponytool --import ponysay --file "extraponies/$pony" --export ponysay --platform linux --file "extrattyponies/$pony" $defaultoutparams defaultoutparams=--colourful y --left - --right - --top - --bottom - --balloon n --fullcolour y
git add "extrattyponies/$pony" 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
} }