neo2.yml 968 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
---
- name: download uniinput
  get_url: url={{item}} dest=/tmp
  with_items:
  - "http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.dtx"
  - "http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.ins"

- name: compile package docu
  command: pdflatex -interaction=nonstopmode uniinput.dtx chdir=/tmp
  ignore_errors: yes

- name: compile package
  command: latex uniinput.ins chdir=/tmp creates=/tmp/uniinput.sty

- name: create destination directories
  file: path=/usr/share/texlive/texmf-local/{{item}}/latex/uniinput state=directory mode=0755
  with_items:
  - tex
  - doc
  become: yes

- name: move style to LaTeX dir
  become: yes
  copy: src=/tmp/uniinput.sty dest=/usr/share/texlive/texmf-local/tex/latex/uniinput/ remote_src=yes 
  notify: update latex

- name: move docu to LaTeX dir
  become: yes
  copy: src=/tmp/uniinput.pdf dest=/usr/share/texlive/texmf-local/doc/latex/uniinput/ remote_src=yes
  notify: update latex