Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
29
libs/pyhelpers/specs/build.sh
Normal file
29
libs/pyhelpers/specs/build.sh
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue