Files
comaps/pyhelpers/specs/build.sh
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

30 lines
712 B
Bash

#!/bin/bash
PROJECT=$1
VERSION=$2
RELEASE=$3
if [ -z "$PROJECT" ]; then
echo "Specify project as first parameter"
exit 1
fi
if [ -z "$VERSION" ]; then
echo "Specify version as second parameter"
exit 1
fi
if [ -z "$RELEASE" ]; then
RELEASE=1
fi
basedir=$(dirname "$0")
PROJECT=$PROJECT VERSION=$VERSION RELEASE=$RELEASE rpmbuild -ba python35-mapsme-modules.spec
if [ $? -ne 0 ]; then
echo "Build failed!"
exit
fi
rsync -av $HOME/rpmbuild/RPMS/x86_64/python35-$PROJECT-$VERSION-$RELEASE.portal.el6.x86_64.rpm mapsme-team@pkg.corp.mail.ru::c6-mapsme-x64
echo "c6-mapsme-x64" | nc pkg.corp.mail.ru 12222 | grep -v '^* c'
echo
echo "$PROJECT packages version $VERSION-$RELEASE build done, ready to deploy"