Skip to content

Commit

Permalink
Merge pull request EOSIO#6362 from EOSIO/fix-build-scripts
Browse files Browse the repository at this point in the history
Pull in changes to build scripts that were merged to develop
  • Loading branch information
b1bart authored Nov 20, 2018
2 parents 0815a5f + dc87af4 commit 131b193
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/generate_bottle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
VERS=`sw_vers -productVersion | awk '/10\.13\..*/{print $0}'`
if [[ -z "$VERS" ]];
then
VERS=`sw_vers -productVersion | awk '/10\.14\..*/{print $0}'`
VERS=`sw_vers -productVersion | awk '/10\.14.*/{print $0}'`
if [[ -z "$VERS" ]];
then
echo "Error, unsupported OS X version"
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_deb.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

NAME="${PROJECT}-${VERSION}.x86_64"
NAME="${PROJECT}_${VERSION}-1_amd64"
PREFIX="usr"
SPREFIX=${PREFIX}
SUBPREFIX="opt/${PROJECT}/${VERSION}"
Expand Down
8 changes: 4 additions & 4 deletions scripts/generate_rpm.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash

NAME="${PROJECT}-${VERSION}.x86_64"
NAME="${PROJECT}-${VERSION}-1"
PREFIX="usr"
SPREFIX=${PREFIX}
SUBPREFIX="opt/${PROJECT}/${VERSION}"
Expand All @@ -13,7 +13,7 @@ export SSUBPREFIX

bash generate_tarball.sh ${NAME}.tar.gz

RPMBUILD=`realpath ~/rpmbuild/BUILDROOT/${NAME}-0.x86_64`
RPMBUILD=`realpath ~/rpmbuild/BUILDROOT/${NAME}.x86_64`
mkdir -p ${RPMBUILD}
FILES=$(tar -xvzf ${NAME}.tar.gz -C ${RPMBUILD})
PFILES=""
Expand All @@ -26,15 +26,15 @@ echo -e ${PFILES} &> ~/rpmbuild/BUILD/filenames.txt

mkdir -p ${PROJECT}
echo -e "Name: ${PROJECT}
Version: ${VERSION}.x86_64
Version: ${VERSION}
License: MIT
Vendor: ${VENDOR}
Source: ${URL}
Requires: openssl-devel.x86_64, gmp-devel.x86_64, libstdc++-devel.x86_64, bzip2.x86_64, bzip2-devel.x86_64, mongodb.x86_64, mongodb-server.x86_64
URL: ${URL}
Packager: ${VENDOR} <${EMAIL}>
Summary: ${DESC}
Release: 0
Release: 1
%description
${DESC}
%files -f filenames.txt" &> ${PROJECT}.spec
Expand Down

0 comments on commit 131b193

Please sign in to comment.