-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added quickbuild.sh, mainly to reduce typing in the Containers traini…
…ng course. Updated README.md
- Loading branch information
Showing
2 changed files
with
47 additions
and
5 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Quick build script | ||
# Release build, static linkage. | ||
# Works on Linux platforms. | ||
# 2022-05-11 Andras Aszodi | ||
|
||
# Top-level MULTOVL directory (where this script is located) | ||
MULTOVLDIR=$( cd $(dirname $0) ; pwd -P ) | ||
|
||
# Build in this subdirectory | ||
BUILDDIR=release | ||
# Install in this directory | ||
INSTALLDIR=${1:-"/usr/local"} | ||
|
||
# Build and install | ||
mkdir -p $BUILDDIR | ||
cd $BUILDDIR | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${INSTALLDIR} .. | ||
make -j2 install | ||
|
||
# Test the installation | ||
cd ${INSTALLDIR}/multovl-1.3/bin | ||
./multovltest.sh ./multovl | ||
./multovl --version | ||
|
||
# Go back | ||
cd $MULTOVLDIR |