limarka 19.5.pre.283 → 19.5.pre.284

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11ec76cd8958cd1a3068f40758d2889c696ebe8a88d45ff8c12d61b101d528bb
4
- data.tar.gz: 890322820205969daa1904315240ef98453f6edae4fa8925883ea8f23af842e5
3
+ metadata.gz: 50104e0e7d365a2a3f4000a01ebdf602c9b22624ef40b4f4a8e04dd322b424fa
4
+ data.tar.gz: 18f63f5a9dc2a234aefcfe5658a06129ef76d4be535639c540c4a0c63a3c9b27
5
5
  SHA512:
6
- metadata.gz: 6f579cf99dec0230079cd9f8636ff7e284a5f93cb47809809a60d1cb98bc42c74b588b583d6db86b3e7ef7d6b66316d8064733ec364f254ee32bfbe36d7b8cad
7
- data.tar.gz: c7213f180f1a6d07876142e93d778dc6eabf2c3e96d205cac91d534a8837c35b1515f3357af7d42b3c97dc028f47074614d534721ba8724e0222eac54a228b57
6
+ metadata.gz: 7b21fe606ae3685e41c0ed6b579db754579e9f865cea217077f69cbc3220b3673bc475637363d020d1d781682b20b84c1d3678b7f5b0ecad6326f1e1e67c4cec
7
+ data.tar.gz: c119e57a24ab3a6bfc9d821ea993ad442c768cb3076e247e4c59f7cf2206a35eb07ef39fd18b2dc40984261bdc5a2799ccef180d97f9f6a15b1702970896a885
data/.travis.yml CHANGED
@@ -5,30 +5,31 @@ services:
5
5
  - docker
6
6
  jobs:
7
7
  include:
8
- - stage: test
8
+ - stage: testes
9
9
  before_install:
10
10
  - sudo apt-get update -qq
11
- - bin/instalador.sh -P -t none
11
+ - bin/instalador.sh -dp
12
12
  before_script:
13
13
  - pandoc -v
14
14
  - libreoffice --version
15
+ - pdftk --version
15
16
  script:
16
17
  - bundle exec rake spec:ruby
17
- - stage: test
18
+ - stage: testes
18
19
  cache:
19
20
  directories:
20
21
  - $HOME/.TinyTeX
21
22
  before_install:
22
23
  - sudo apt-get update -qq
23
24
  - export PATH=$PATH:~/.TinyTeX2/bin/x86_64-linux
24
- - bin/instalador.sh -P -t tiny -C
25
+ - bin/instalador.sh -dptc
25
26
  before_script:
26
27
  - latexmk -v
27
28
  - xelatex -v
28
29
  - pdftotext -v
29
30
  - pandoc -v
30
- - docker --version
31
31
  - libreoffice --version
32
+ - pdftk --version
32
33
  script:
33
34
  - bundle exec rake spec:pdf
34
35
  after_failure:
data/bin/instalador.sh CHANGED
@@ -1,59 +1,42 @@
1
1
  #!/usr/bin/env sh
2
- # rodar script usando:
3
- # ". instalador.sh" ou "bash -i instalador.sh"
4
- # ver https://askubuntu.com/a/1102119
5
2
 
6
- #quiet
7
- #dependencias=dev,user
8
- #pandoc
9
- #tex=tiny,live,system
10
- #codename=xenial
11
- #grupo=limarka,limarka-extras
12
- #pacote
13
- #Dry run
14
- quiet=0
15
- dependencias=dev
16
- pandoc=0
17
- tex=tiny
18
- distro=$(lsb_release -i -s)
3
+ dependencias=
4
+ pandoc=
5
+ tex=
19
6
  codename=$(lsb_release -c -s)
20
- grupo=basico
21
7
  pacotes=
22
8
  dry=
23
- cache=0
9
+ cache=
24
10
 
25
11
  # Documentação de ajuda:
26
12
  # https://wiki.bash-hackers.org/howto/getopts_tutorial
27
13
  # http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html
14
+ # http://robertmuth.blogspot.com/2012/08/better-bash-scripting-in-15-minutes.html
15
+ # https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html
28
16
 
29
- while getopts "DPCd:t:c:g:p:" opt; do
17
+ while getopts "Dcdtpn" opt; do
30
18
  case $opt in
31
- P)
19
+ p)
32
20
  pandoc=1
33
21
  ;;
34
22
  D)
35
23
  # Dry-run: não executa os comandos
24
+ # https://unix.stackexchange.com/questions/433801/add-some-dry-run-option-to-script
36
25
  dry="echo "
37
26
  ;;
38
- C)
27
+ c)
39
28
  # Não instala o TinyTeX se existir no cache
40
29
  cache=1
41
30
  ;;
42
31
  d)
43
- dependencias="$OPTARG"
32
+ dependencias=1
44
33
  ;;
45
34
  t)
46
- tex="$OPTARG"
35
+ tex=1
47
36
  ;;
48
- c)
37
+ n)
49
38
  codename="$OPTARG"
50
39
  ;;
51
- g)
52
- grupo="$OPTARG"
53
- ;;
54
- p)
55
- pacotes="$pacotes $OPTARG "
56
- ;;
57
40
  \?)
58
41
  echo "Opção inválida: -$OPTARG" >&2
59
42
  exit 1
@@ -66,80 +49,50 @@ while getopts "DPCd:t:c:g:p:" opt; do
66
49
  done
67
50
 
68
51
  # ler distribuição: lsb_release -c -s
69
- if [ "$distro" = "Ubuntu" -o "$distro" = "ManjaroLinux" ]; then
70
- if [ "$dependencias" = "dev" ]; then
71
- echo Instalando dependências de desenvolvimento...
72
- if [ "$distro" = "Ubuntu" ]; then
73
- $dry sudo apt-get install -y -qq \
52
+ if [ "$codename" = "xenial" ]; then
53
+
54
+ if [ -n "$dependencias" ]; then
55
+ $dry sudo apt-get install -y -qq \
74
56
  language-pack-pt \
75
57
  libreoffice \
76
58
  locales \
77
59
  pdfgrep \
60
+ pdftk \
78
61
  poppler-utils \
79
62
  ruby-full \
80
63
  unzip \
81
64
  xclip
82
- if [ "$codename" = "xenial" ]; then
83
- $dry sudo apt-get install pdftk -y
84
- elif [ "$codename" = "bionic" ]; then
85
- $dry sudo add-apt-repository ppa:malteworld/ppa -y
86
- $dry sudo apt-get update
87
- $dry sudo apt-get install pdftk -y
88
- else
89
- # Ubuntu >= 18.10
90
- $dry sudo apt-get install pdftk-java -y
91
- fi
92
- elif [ "$distro" = "ManjaroLinux" ]; then
93
- $dry sudo pacman -S --noconfirm \
94
- ruby \
95
- poppler \
96
- xclip \
97
- pacaur
98
- $dry yes J | pacaur -S pdftk-bin
99
- fi
100
- elif [ "$dependencias" = "user" ]; then
101
- $dry echo Opção ainda não implementada: user
102
65
  fi
103
66
 
104
- if [ "$tex" = "none" ]; then
105
- echo Ignorando instalação do Latex
106
- elif [ "$tex" = "system" ]; then
107
- if [ "$distro" = "ManjaroLinux" ]; then
108
- $dry sudo pacman -S texlive-core \
109
- texlive-bin \
110
- texlive-latexextra
111
- $dry yes J | pacaur -S abntex2
112
- elif [ "$distro" = "Ubuntu" ]; then
113
- $dry sudo apt-get install -y \
114
- texlive \
115
- texlive-publishers \
116
- texlive-lang-portuguese \
117
- texlive-latex-extra \
118
- texlive-fonts-recommended \
119
- texlive-xetex
120
- fi
121
- elif [ "$tex" = "tiny" ]; then
122
-
67
+ if [ -n "$tex" ]; then
123
68
  tex_em_cache=0
124
- if [ $cache -eq 1 ]; then
69
+ if [ -n "$cache" ]; then
125
70
  if command -v tlmgr > /dev/null; then
126
71
  tex_em_cache=1
127
- echo TinyTeX encontrado no cache.
72
+ echo TinyTeX não será instalado pois foi encontrado no cache.
128
73
  fi
129
74
  fi
130
75
 
131
- if [ $tex_em_cache -eq 1 ];
132
- then
133
- echo TinyTeX não será instalado.
76
+ if [ $tex_em_cache -eq 1 ]; then
77
+ : #echo TinyTeX não será instalado.
134
78
  else
135
- echo Instalando o tinytex...
136
- $dry wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | $dry sh
137
- # Deve ser colocado no Path, se não tlmgr comando não encontrado
138
- $dry echo -e "\n\n# TinyTeX BIN" >> ~/.bashrc
139
- $dry echo -e "export "PATH"=$"PATH":~/.TinyTeX/bin/x86_64-linux" >> ~/.bashrc
140
- $dry source ~/.bashrc
141
-
142
- if [ "$grupo" = "basico" ]; then
79
+ if [ -z "$dry" ]; then
80
+ wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
81
+ tlmgr install abntex2 \
82
+ babel-portuges \
83
+ enumitem \
84
+ ifetex \
85
+ lastpage \
86
+ lipsum \
87
+ listings \
88
+ memoir \
89
+ microtype \
90
+ pdfpages \
91
+ textcase \
92
+ xcolor
93
+ tlmgr option -- autobackup 0
94
+ else
95
+ $dry wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" \| sh
143
96
  $dry tlmgr install abntex2 \
144
97
  babel-portuges \
145
98
  enumitem \
@@ -152,41 +105,18 @@ if [ "$distro" = "Ubuntu" -o "$distro" = "ManjaroLinux" ]; then
152
105
  pdfpages \
153
106
  textcase \
154
107
  xcolor
155
- elif [ "$grupo" = "extras" ]; then
156
- $dry Opção ainda não implementada: extras
108
+ $dry tlmgr option -- autobackup 0
157
109
  fi
158
-
159
- if [ -n "$pacotes" ] ; then
160
- $dry tlmgr install $pacotes
161
- fi
162
-
163
- $dry tlmgr option -- autobackup 0
164
-
165
- fi #tex
166
- fi
167
- fi # UbuntuLinux | ManjaroLinux
168
110
 
169
- if [ "$pandoc" -eq 1 ]
170
- then
171
- echo Ignorando instalação dos Binários do Pandoc
172
- if [ "$distro" = "ManjaroLinux" ]; then
173
- $dry yes J | pacaur -S pandoc-bin
174
- else
175
- #echo Instalando o pandoc...
176
- $dry wget -nv https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb \
177
- && $dry sudo dpkg -i pandoc-*.deb
178
- fi
179
- fi
111
+ fi
180
112
 
181
- if ! $dry gem install limarka
113
+
114
+ fi #tex
115
+
116
+ fi # xenial
117
+
118
+ if [ -n "$pandoc" ];
182
119
  then
183
- $dry "Não foi possível instalar o limarka"
184
- $dry exit 1
120
+ $dry wget -nv https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb
121
+ $dry sudo dpkg -i pandoc-*.deb && $dry rm pandoc-*.deb
185
122
  fi
186
-
187
- # Especifico pro Manjaro
188
- if [ "$distro" = "ManjaroLinux" ]; then
189
- $dry echo -e "\n\n# RUBY GEMS BIN" >> ~/.bashrc
190
- $dry echo -e "export "PATH"=$"PATH":~/.gem/ruby/2.6.0/bin" >> ~/.bashrc
191
- $dry source ~/.bashrc
192
- fi
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limarka
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.5.pre.283
4
+ version: 19.5.pre.284
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo de Santana Medeiros Alexandre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-21 00:00:00.000000000 Z
11
+ date: 2019-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -259,7 +259,6 @@ files:
259
259
  - bin/console
260
260
  - bin/deploy-docker.sh
261
261
  - bin/instalador.sh
262
- - bin/install-latex.sh
263
262
  - bin/setup
264
263
  - bin/test
265
264
  - changelogs/codelog.yml
data/bin/install-latex.sh DELETED
@@ -1,23 +0,0 @@
1
-
2
- # Instalação do TinyTeX
3
- wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
4
-
5
- # Instalação dos demais pacotes utilizados pelo Limarka e abntex2
6
- tlmgr install abntex2 \
7
- babel-portuges \
8
- enumitem \
9
- ifetex \
10
- lastpage \
11
- lipsum \
12
- listings \
13
- memoir \
14
- microtype \
15
- pdfpages \
16
- textcase \
17
- xcolor
18
-
19
- # Sobre cache:
20
- # https://tex.stackexchange.com/questions/398830/how-to-build-my-latex-automatically-using-travis-ci
21
-
22
- # Keep no backups (not required)
23
- tlmgr option -- autobackup 0