configure-ptt-chedecorare-oglive-methodsejecutarscript-b64fix-cfg2objfixes-winlgromero-filebeatmainmodulesnew-browserno-ptt-paramogadmcliogadmclient-statusogagent-jobsogagent-macosogcore1ogliveoglogoglog2override-moduleping1ping2ping3ping4py3-winpython3qndtestreport-progresstlsunification2unification3versionswindows-fixes
Last change
on this file since eeb5b08 was
219fba0,
checked in by Ramón M. Gómez <ramongomez@…>, 7 years ago
|
#840: Creación de nuevos OGAgent para versión 1.1.1 en desarrollo.
|
-
Property mode set to
100755
|
File size:
960 bytes
|
Rev | Line | |
---|
[11f7a07] | 1 | #!/bin/bash |
---|
| 2 | |
---|
[75ba20c] | 3 | cd $(dirname "$0") |
---|
[11f7a07] | 4 | top=`pwd` |
---|
| 5 | |
---|
[219fba0] | 6 | [ -r ../src/VERSION ] && VERSION="$(cat ../src/VERSION)" || VERSION="1.1.0" |
---|
| 7 | RELEASE="1" |
---|
| 8 | |
---|
[11f7a07] | 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.