neo2.yml 1.04 KB
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1 2
---
- name: download uniinput
3 4 5
  get_url:
    url: "{{ item }}"
    dest: /tmp
julian.gethmann's avatar
julian.gethmann committed
6 7 8 9 10
  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
11 12 13
  command: pdflatex -interaction=nonstopmode uniinput.dtx
  args:
    chdir: /tmp
julian.gethmann's avatar
julian.gethmann committed
14 15 16
  ignore_errors: yes

- name: compile package
17 18 19 20
  command: latex uniinput.ins
  args:
    chdir: /tmp
    creates: /tmp/uniinput.sty
julian.gethmann's avatar
julian.gethmann committed
21 22

- name: create destination directories
23 24 25 26
  file:
    path: "/usr/share/texlive/texmf-local/{{ item }}/latex/uniinput"
    state: directory
    mode: 0755
julian.gethmann's avatar
julian.gethmann committed
27 28 29 30 31 32 33
  with_items:
  - tex
  - doc
  become: yes

- name: move style to LaTeX dir
  become: yes
34 35 36 37
  copy:
    src: /tmp/uniinput.sty
    dest: "/usr/share/texlive/texmf-local/tex/latex/uniinput/"
    remote_src: yes
julian.gethmann's avatar
julian.gethmann committed
38 39 40 41
  notify: update latex

- name: move docu to LaTeX dir
  become: yes
42 43 44 45
  copy: 
    src: /tmp/uniinput.pdf
    dest: "/usr/share/texlive/texmf-local/doc/latex/uniinput/"
    remote_src: yes
julian.gethmann's avatar
julian.gethmann committed
46
  notify: update latex