Commit ed9d4bf972f217609f3dc4485ff2b8d206cd2862
1 parent
a042acf3
Exists in
master
Incluindo script para instalação dos pacotes para cross-compiling.
Showing
1 changed file
with
60 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,60 @@ |
1 | +#!/bin/bash | |
2 | + | |
3 | +install_packages() | |
4 | +{ | |
5 | + | |
6 | +# Instala apicativos e temas necessários | |
7 | +sudo zypper --non-interactive in \ | |
8 | + ${1}-cross-gcc-c++ \ | |
9 | + ${1}-cross-pkg-config \ | |
10 | + ${1}-cross-cpp \ | |
11 | + ${1}-cross-binutils \ | |
12 | + ${1}-pw3270 \ | |
13 | + ${1}-lib3270-devel \ | |
14 | + ${1}-pw3270-devel | |
15 | + | |
16 | +} | |
17 | + | |
18 | + | |
19 | +until [ -z "${1}" ] | |
20 | +do | |
21 | + if [ ${1:0:2} = '--' ]; then | |
22 | + tmp=${1:2} | |
23 | + parameter=${tmp%%=*} | |
24 | + parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
25 | + | |
26 | + case $parameter in | |
27 | + | |
28 | + ar) | |
29 | + zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.2/ mingw32 | |
30 | + zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.2/ mingw64 | |
31 | + zypper ar --refresh http://download.opensuse.org/repositories/home:/PerryWerneck:/mingw32/openSUSE_Leap_42.2/ mingw32-pw3270 | |
32 | + zypper ar --refresh http://download.opensuse.org/repositories/home:/PerryWerneck:/mingw64/openSUSE_Leap_42.2/ mingw64-pw3270 | |
33 | + zypper ref | |
34 | + ;; | |
35 | + | |
36 | + 32) | |
37 | + install_packages mingw32 | |
38 | + ;; | |
39 | + | |
40 | + 64) | |
41 | + install_packages mingw64 | |
42 | + ;; | |
43 | + | |
44 | + ALL) | |
45 | + install_packages mingw32 | |
46 | + install_packages mingw64 | |
47 | + ;; | |
48 | + | |
49 | + | |
50 | + *) | |
51 | + value=${tmp##*=} | |
52 | + eval $parameter=$value | |
53 | + esac | |
54 | + | |
55 | + fi | |
56 | + | |
57 | + shift | |
58 | +done | |
59 | + | |
60 | + | ... | ... |