This repository has been archived by the owner on Mar 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scripts for building deb package
- Loading branch information
Showing
4 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ script/package | |
Vagrantfile.local | ||
.gem | ||
coverage | ||
cache.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
#!/bin/bash | ||
|
||
RUBY_VERSION=2.2.3 | ||
ONEBODY_VERSION=$(cat ../VERSION | tr -d '\n') | ||
set -e | ||
|
||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
cd $DIR/.. | ||
|
||
mkdir -p /tmp/pkgr-cache | ||
|
||
sed -i "1iruby '$RUBY_VERSION'" ../Gemfile | ||
RUBY_VERSION=$(cat .ruby-version | tr -d '\n') | ||
ONEBODY_VERSION=$(cat VERSION | tr -d '\n') | ||
|
||
# explicitly set the ruby version, and tell bundler how to build nokogiri... | ||
sed -i "1iruby '$RUBY_VERSION'" Gemfile | ||
bundle config --local build.nokogiri "--use-system-libraries --with-xml2-include=/usr/include/libxml2" | ||
bundle config --local build.nokogumbo "--use-system-libraries --with-xml2-include=/usr/include/libxml2" | ||
|
||
pkgr package .. --version=$ONEBODY_VERSION | ||
# build the package! | ||
pkgr package . --version=$ONEBODY_VERSION | ||
|
||
sed -i '/^ruby/d' ../Gemfile | ||
# put configs back like they were... | ||
sed -i '/^ruby/d' Gemfile | ||
bundle config --delete build.nokogiri | ||
bundle config --delete build.nokogumbo |