mirror of
https://github.com/erkin/ponysay
synced 2024-11-16 00:17:59 +00:00
dev/dist.sh ttyponies
is used instead of make -B ttyponies
+ same for make pdfmanual
This commit is contained in:
parent
bea10d0e54
commit
87232a4c38
3 changed files with 59 additions and 50 deletions
41
configure
vendored
41
configure
vendored
|
@ -15,47 +15,6 @@ function makeMakefile()
|
||||||
for func in $(echo 'build' 'prebuilt' 'install' 'uninstall' 'uninstall-old' 'clean' 'clean-old' 'view'); do
|
for func in $(echo 'build' 'prebuilt' 'install' 'uninstall' 'uninstall-old' 'clean' 'clean-old' 'view'); do
|
||||||
echo -e "$func"':\n\t./setup.py $(PARAMS) '"$func"'\n'
|
echo -e "$func"':\n\t./setup.py $(PARAMS) '"$func"'\n'
|
||||||
done
|
done
|
||||||
|
|
||||||
cat <<EOF
|
|
||||||
## Scripts for maintainers
|
|
||||||
|
|
||||||
ttyponies:
|
|
||||||
mkdir -p "ttyponies"
|
|
||||||
for pony in \$\$(ls --color=no "ponies/"); do \\
|
|
||||||
if [ ! "\$\$pony" = '.info' ]; then \\
|
|
||||||
echo "building ttypony: \$\$pony" ;\\
|
|
||||||
if [ "\`readlink "ponies/\$\$pony"\`" = '' ]; then \\
|
|
||||||
ponysay2ttyponysay < "ponies/\$\$pony" | tty2colourfultty -c 1 > "ttyponies/\$\$pony" ;\\
|
|
||||||
git add "ttyponies/\$\$pony" ;\\
|
|
||||||
else \\
|
|
||||||
ln -sf \`readlink "ponies/\$\$pony"\` "ttyponies/\$\$pony" ;\\
|
|
||||||
git add "ttyponies/\$\$pony" ;\\
|
|
||||||
fi ;\\
|
|
||||||
fi ;\\
|
|
||||||
done
|
|
||||||
mkdir -p "extrattyponies"
|
|
||||||
for pony in \$\$(ls --color=no "extraponies/"); do \\
|
|
||||||
if [ ! "\$\$pony" = '.info' ]; then \\
|
|
||||||
echo "building extrattypony: \$\$pony" ;\\
|
|
||||||
if [ "\`readlink "extraponies/\$\$pony"\`" = '' ]; then \\
|
|
||||||
ponysay2ttyponysay < "extraponies/\$\$pony" | tty2colourfultty -c 1 > "extrattyponies/\$\$pony" ;\\
|
|
||||||
git add "extrattyponies/\$\$pony" ;\\
|
|
||||||
else \\
|
|
||||||
ln -sf \`readlink "extraponies/\$\$pony"\` "extrattyponies/\$\$pony" ;\\
|
|
||||||
git add "extrattyponies/\$\$pony" ;\\
|
|
||||||
fi ;\\
|
|
||||||
fi ;\\
|
|
||||||
done
|
|
||||||
|
|
||||||
pdfmanual:
|
|
||||||
texi2pdf "manuals/ponysay.texinfo"
|
|
||||||
git add "manuals/ponysay.texinfo" "ponysay.pdf"
|
|
||||||
for ext in \`echo aux cp cps fn ky log pg toc tp vr\`; do \\
|
|
||||||
(if [ -f "ponysay.\$\$ext" ]; then unlink "ponysay.\$\$ext"; fi); \\
|
|
||||||
done
|
|
||||||
if [ -d "ponysay.t2d" ]; then rm -r "ponysay.t2d"; fi
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
51
dev/dist.sh
Executable file
51
dev/dist.sh
Executable file
|
@ -0,0 +1,51 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
|
ttyponies()
|
||||||
|
{
|
||||||
|
mkdir -p "ttyponies"
|
||||||
|
for pony in $(ls --color=no "ponies/"); do
|
||||||
|
if [ ! "$pony" = '.info' ]; then
|
||||||
|
echo "building ttypony: $pony"
|
||||||
|
if [ "`readlink "ponies/$pony"`" = '' ]; then
|
||||||
|
ponysay2ttyponysay < "ponies/$pony" | tty2colourfultty -c 1 > "ttyponies/$pony"
|
||||||
|
git add "ttyponies/$pony"
|
||||||
|
else
|
||||||
|
ln -sf `readlink "ponies/$pony"` "ttyponies/$pony"
|
||||||
|
git add "ttyponies/$pony"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
mkdir -p "extrattyponies"
|
||||||
|
for pony in $(ls --color=no "extraponies/"); do
|
||||||
|
if [ ! "$pony" = '.info' ]; then
|
||||||
|
echo "building extrattypony: $pony"
|
||||||
|
if [ "`readlink "extraponies/$pony"`" = '' ]; then
|
||||||
|
ponysay2ttyponysay < "extraponies/$pony" | tty2colourfultty -c 1 > "extrattyponies/$pony"
|
||||||
|
git add "extrattyponies/$pony"
|
||||||
|
else
|
||||||
|
ln -sf `readlink "extraponies/$pony"` "extrattyponies/$pony"
|
||||||
|
git add "extrattyponies/$pony"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pdfmanual()
|
||||||
|
{
|
||||||
|
texi2pdf "manuals/ponysay.texinfo"
|
||||||
|
git add "manuals/ponysay.texinfo" "ponysay.pdf"
|
||||||
|
for ext in `echo aux cp cps fn ky log pg toc tp vr`; do
|
||||||
|
if [ -f "ponysay.\$\$ext" ]; then
|
||||||
|
unlink "ponysay.$ext"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ -d "ponysay.t2d" ]; then
|
||||||
|
rm -r "ponysay.t2d";
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[ "$1" = './dist.sh' ] && cd ..
|
||||||
|
"$@"
|
|
@ -698,14 +698,13 @@ Used in the @command{./configure} script. (Optional)
|
||||||
@cindex contributing
|
@cindex contributing
|
||||||
|
|
||||||
@table @command
|
@table @command
|
||||||
@item make
|
|
||||||
Required to run @command{make -B ttyponies}.
|
|
||||||
@item coreutils
|
|
||||||
@command{ln} and @command{readlink} are used in the @command{ttyponies} subscript.
|
|
||||||
@item bash
|
@item bash
|
||||||
Used in the ttyponies subscript.
|
Required to run @command{dev/dist.sh}.
|
||||||
|
@item coreutils
|
||||||
|
@command{ln} and @command{readlink} are used in the @command{ttyponies} subscript
|
||||||
|
of @command{dev/dist.sh}.
|
||||||
@item util-say>=2
|
@item util-say>=2
|
||||||
Used by @command{make ttyponies} to build ttyponies from xterm ponies.
|
Used by @command{dev/dist.sh ttyponies} to build ttyponies from xterm ponies.
|
||||||
It can be downloaded at @url{https://github.com/maandree/util-say}.
|
It can be downloaded at @url{https://github.com/maandree/util-say}.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
@ -1435,12 +1434,12 @@ must not redefine the colours in the range 16 to 255 (inclusive).
|
||||||
@cindex ttypony
|
@cindex ttypony
|
||||||
When a pony is added please also add a ttypony version, i.e. the pony files used in
|
When a pony is added please also add a ttypony version, i.e. the pony files used in
|
||||||
TTY, but if you don't please state so in the pull request so we do not miss the
|
TTY, but if you don't please state so in the pull request so we do not miss the
|
||||||
create it; the simplest way to do this is to run @command{make -B ttyponies} after
|
create it; the simplest way to do this is to run @command{dev/dist.sh ttyponies} after
|
||||||
adding the ponies to @file{ponies/}, running @command{make -B ttyponies} will build
|
adding the ponies to @file{ponies/}, running @command{dev/dist.sh ttyponies} will build
|
||||||
(or rebuild) all ttyponies with a pony present in @file{ponies/}, and creates all
|
(or rebuild) all ttyponies with a pony present in @file{ponies/}, and creates all
|
||||||
needed symlinks.
|
needed symlinks.
|
||||||
|
|
||||||
To be able to run @command{make -B ttyponies} you must have the packages listed under
|
To be able to run @command{dev/dist.sh ttyponies} you must have the packages listed under
|
||||||
@ref{Dependencies for pony providers}.
|
@ref{Dependencies for pony providers}.
|
||||||
|
|
||||||
@cindex ponyquotes
|
@cindex ponyquotes
|
||||||
|
|
Loading…
Reference in a new issue