source: admin/Sources/Clients/ogagent/linux/build-packages.sh @ e371a87

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-instalacion
Last change on this file since e371a87 was 82dbaff, 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
Line 
1#!/bin/bash
2
3cd $(dirname "$0")
4top=`pwd`
5
6[ -r ../src/VERSION ] && VERSION="$(cat ../src/VERSION)" || VERSION="1.1.0"
7RELEASE="1"
8
9# Debian based
10dpkg-buildpackage -b -d
11
12cat 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
17cat 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
25for 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
33done
34
35#rm ogagent-$VERSION
Note: See TracBrowser for help on using the repository browser.