Skip to content
Snippets Groups Projects
Commit 638a7979 authored by nimrod's avatar nimrod
Browse files

Add ttyrec2gif.

parent d34fc7d0
No related branches found
No related tags found
No related merge requests found
FROM golang:1.11-alpine3.8 as on-change FROM golang:1.11-alpine3.8 as golang
RUN apk --update add git && \ RUN apk --update add git && \
rm -rf /var/cache/apk/* && \ /usr/local/go/bin/go get github.com/spelufo/on-change && \
/usr/local/go/bin/go get github.com/spelufo/on-change /usr/local/go/bin/go get github.com/sugyan/ttyrec2gif
FROM debian:buster-slim FROM debian:buster-slim
COPY --from=on-change /go/bin/on-change /usr/local/bin COPY --from=golang /go/bin/on-change /go/bin/ttyrec2gif /usr/local/bin/
RUN apt-get update && \ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
fonts-font-awesome \ fonts-font-awesome \
......
...@@ -23,6 +23,7 @@ See the example folder for more details. ...@@ -23,6 +23,7 @@ See the example folder for more details.
- [XeTex](http://xetex.sourceforge.net/) - [XeTex](http://xetex.sourceforge.net/)
- [on-change](https://github.com/spelufo/on-change) - [on-change](https://github.com/spelufo/on-change)
- [groff](https://www.gnu.org/software/groff/) - [groff](https://www.gnu.org/software/groff/)
- [ttyrec2gif](https://github.com/sugyan/ttyrec2gif)
## License ## License
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
all: presentation.pdf all: presentation.pdf
presentation.pdf: diagram.pdf presentation.pdf: diagram.pdf
presentation.pdf: prompt.gif
%.pdf: %.md %.pdf: %.md
pandoc -t beamer $< -o $@ pandoc -t beamer $< -o $@
...@@ -10,5 +11,8 @@ presentation.pdf: diagram.pdf ...@@ -10,5 +11,8 @@ presentation.pdf: diagram.pdf
%.pdf: %.dot %.pdf: %.dot
dot $< -Tpdf > $@ dot $< -Tpdf > $@
%.gif: %.tty
ttyrec2gif -in $< -out $@
clean: clean:
- rm *.pdf - rm *.pdf *.gif
...@@ -13,3 +13,7 @@ author: Your name here ...@@ -13,3 +13,7 @@ author: Your name here
## Diagram ## Diagram
![Diagram](diagram.pdf) ![Diagram](diagram.pdf)
## Animated gif
![Animated gif](prompt.gif)
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment