-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ssh://github.com/CSCfi/Kielipankki-palvelut …
…into smsxml
- Loading branch information
Showing
7 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[sanat] | ||
vm0623.kaj.pouta.csc.fi webdomain=vm0623.kaj.pouta.csc.fi ansible_user=cloud-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
praat | ||
===== | ||
|
||
Installing praat, the barren version | ||
|
||
The makefile is modified to allow for dynamic linking. | ||
|
||
More information: http://www.praat.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
# defaults | ||
|
||
package_name: praat | ||
release_url: https://github.com/praat/praat.git | ||
version: "{{ praat_version }}" | ||
compile_root: /tmp/{{ ansible_user_id }}/ansible | ||
compile_dir: "{{ compile_root }}/praat/{{ branch }}" | ||
install_dir: "{{ install_prefix }}/{{ package_name }}/{{ version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
# tasks file for praat | ||
|
||
- name: compile_root directory exists with 0777 permission | ||
become: no | ||
file: path={{ compile_root }} | ||
mode=0777 | ||
recurse=no | ||
state=directory | ||
|
||
- name: Clone repo | ||
git: | ||
repo: "{{ release_url }}" | ||
dest: "{{ compile_dir }}" | ||
force: yes | ||
depth: 1 | ||
version: "{{ branch }}" | ||
|
||
- name: Prepare barren compilation | ||
copy: | ||
remote_src: true | ||
src: "{{ compile_dir }}/makefiles/makefile.defs.linux.barren" | ||
dest: "{{ compile_dir }}/makefile.defs" | ||
|
||
- name: Remove static linking (experimental) | ||
lineinfile: | ||
path: "{{ compile_dir }}/makefile.defs" | ||
regexp: "^LIBS = -lm -lpthread( -static -static-libgcc -static-libstdc\\+\\+)?$" | ||
line: "LIBS = -lm -lpthread" | ||
|
||
- name: Running make | ||
shell: bash --login -c "module load gcc/4.8.2 && make -j8 > MAKE.log" | ||
args: | ||
chdir: "{{ compile_dir }}" | ||
#creates: MAKE.log | ||
|
||
- name: create install_dir subtree | ||
become: no | ||
file: | ||
path: "{{ install_dir }}/{{ item }}" | ||
mode: 0775 | ||
recurse: no | ||
state: directory | ||
with_items: | ||
- bin | ||
|
||
- name: Copy praat to install_dir | ||
copy: | ||
remote_src: true | ||
src: "{{ compile_dir }}/praat" | ||
dest: "{{ install_dir }}/bin" | ||
mode: 0755 | ||
|
||
- name: Fix permissions (if shared group is set) | ||
file: | ||
path: "{{ install_dir }}" | ||
group: "{{ shared_group }}" | ||
mode: "g+rwX,o+rX" | ||
recurse: yes | ||
when: shared_group is defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters