neo2.yml 1.11 KB
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
---
2 3 4 5 6 7 8 9 10 11 12
- name: create destination directories
  become: yes
  file:
    path: "/usr/share/texlive/texmf-local/{{ item }}/latex/uniinput"
    state: directory
    mode: 0755
  with_items:
  - tex
  - doc
  register: uniinputdir

julian.gethmann's avatar
julian.gethmann committed
13
- name: download uniinput
14 15 16
  get_url:
    url: "{{ item }}"
    dest: /tmp
julian.gethmann's avatar
julian.gethmann committed
17 18 19
  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"
20
  when: uniinputdir.changed
julian.gethmann's avatar
julian.gethmann committed
21 22

- name: compile package docu
23 24 25
  command: pdflatex -interaction=nonstopmode uniinput.dtx
  args:
    chdir: /tmp
26
    creates: /tmp/uniinput.pdf
julian.gethmann's avatar
julian.gethmann committed
27 28 29
  ignore_errors: yes

- name: compile package
30 31 32 33
  command: latex uniinput.ins
  args:
    chdir: /tmp
    creates: /tmp/uniinput.sty
julian.gethmann's avatar
julian.gethmann committed
34 35 36

- name: move style to LaTeX dir
  become: yes
37 38
  copy:
    src: /tmp/uniinput.sty
39
    dest: "{{ texpath }}/tex/latex/uniinput/uniinput.sty"
40
    remote_src: yes
julian.gethmann's avatar
julian.gethmann committed
41 42 43 44
  notify: update latex

- name: move docu to LaTeX dir
  become: yes
45
  copy:
46
    src: /tmp/uniinput.pdf
47
    dest: "{{ texpath }}/doc/latex/uniinput/uniinput.pdf"
48
    remote_src: yes
julian.gethmann's avatar
julian.gethmann committed
49
  notify: update latex