Created
October 17, 2018 00:44
-
-
Save knight-of-ni/fb2b931dec4efece96aab89b3ebbd93c to your computer and use it in GitHub Desktop.
New method rebuilds odb packages in debian testing
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
#!/bin/bash | |
set -e | |
if [ -z ${DEB_BUILD_OPTIONS} ] ; then | |
export DEB_BUILD_OPTIONS="parallel=2" | |
fi | |
mkdir -p /debian | |
cd /debian | |
# | |
# ODB | |
# | |
echo | |
echo "Begin building ODB package..." | |
echo | |
# Install the package's build dependencies | |
apt-get build-dep odb | |
# Build the package | |
apt-get -b source odb | |
# | |
# LIBODB | |
# | |
echo | |
echo "Begin building LIBODB package..." | |
echo | |
# Install the package's build dependencies | |
apt-get build-dep libodb | |
# Build the package | |
apt-get -b source libodb | |
# | |
# Install LIBODB | |
# | |
echo | |
echo "Installing LIBODB packages for build dependencies..." | |
echo | |
gdebi --non-interactive libodb-2.4_*.deb | |
gdebi --non-interactive libodb-dev*.deb | |
# | |
# LIBODB-BOOST | |
# | |
echo | |
echo "Begin building LIBODB-BOOST package..." | |
echo | |
# Install the package's build dependencies | |
apt-get build-dep libodb-boost | |
# Build the package | |
apt-get -b source libodb-boost | |
# | |
# LIBODB-MYSQL | |
# | |
echo | |
echo "Begin building LIBODB-MYSQL package..." | |
echo | |
# Install the package's build dependencies | |
apt-get build-dep libodb-mysql | |
# Build the package | |
apt-get -b source libodb-mysql | |
# | |
# LIBODB-SQLITE | |
# | |
echo | |
echo "Begin building LIBODB-SQLITE package..." | |
echo | |
# Install the package's build dependencies | |
apt-get build-dep libodb-sqlite | |
# Build the package | |
apt-get -b source libodb-sqlite | |
# | |
# LIBODB-PGSQL | |
# | |
echo | |
echo "Begin building LIBODB-PGSQL package..." | |
echo | |
# Install the package's build dependencies | |
apt-get build-dep libodb-pgsql | |
# Build the package | |
apt-get -b source libodb-pgsql | |
echo | |
echo "Build Completed. Check Docker Volume folder for packages..." | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment