918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | VERSION=1.1.0 |
---|
4 | RELEASE=1 |
---|
5 | |
---|
6 | cd $(dirname "$0") |
---|
7 | top=`pwd` |
---|
8 | |
---|
9 | # Debian based |
---|
10 | dpkg-buildpackage -b -d |
---|
11 | |
---|
12 | cat ogagent-template.spec | |
---|
13 | sed -e s/"version 0.0.0"/"version ${VERSION}"/g | |
---|
14 | sed -e s/"release 1"/"release ${RELEASE}"/g > ogagent-$VERSION.spec |
---|
15 | |
---|
16 | # Now fix dependencies for opensuse |
---|
17 | cat ogagent-template.spec | |
---|
18 | sed -e s/"version 0.0.0"/"version ${VERSION}"/g | |
---|
19 | sed -e s/"name ogagent"/"name ogagent-opensuse"/g | |
---|
20 | sed -e s/"PyQt4"/"python-qt4"/g | |
---|
21 | sed -e s/"libXScrnSaver"/"libXss1"/g > ogagent-opensuse-$VERSION.spec |
---|
22 | |
---|
23 | |
---|
24 | # Right now, ogagent-xrdp-1.7.0.spec is not needed |
---|
25 | for pkg in ogagent-$VERSION.spec ogagent-opensuse-$VERSION.spec; do |
---|
26 | |
---|
27 | rm -rf rpm |
---|
28 | for folder in SOURCES BUILD RPMS SPECS SRPMS; do |
---|
29 | mkdir -p rpm/$folder |
---|
30 | done |
---|
31 | |
---|
32 | rpmbuild -v -bb --clean --buildroot=$top/rpm/BUILD/$pkg-root --target noarch $pkg 2>&1 |
---|
33 | done |
---|
34 | |
---|
35 | #rm ogagent-$VERSION |
---|
Note: See
TracBrowser
for help on using the repository browser.