mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-25 03:18:36 +00:00
From 5f6b24723b1d029d3c764aaa8dea31b8497c3905 Mon Sep 17 00:00:00 2001 From: "Tuan T. Pham" <tuan@vt.edu> Date: Thu, 8 Sep 2016 03:42:12 -0400 Subject: [PATCH] Add script to install required packages to compile in Debian In order to setup an environment to compile and to test CRIU from source, we need to have required packages in Debian environment.[^0] This script and its package list will help setting it up. contrib/debian/dev-packages.lst: * List of required packages for Debian development environment scripts/install-debian-pkgs.sh: * A simple bash script instaling the required Debian packages [0]: https://criu.org/Installation Signed-off-by: Tuan T. Pham <tuan@vt.edu> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
26 lines
497 B
Bash
Executable File
26 lines
497 B
Bash
Executable File
#!/bin/bash
|
|
# Install required packages for development environment in Debian Distro
|
|
|
|
REQ_PKGS=${REQ_PKGS:=contrib/debian/dev-packages.lst}
|
|
|
|
help_msg="Install required packages for development environment in Debian Distro
|
|
Usage:
|
|
scripts/install-debian-pkgs.sh"
|
|
|
|
function print_help()
|
|
{
|
|
exec echo -e "$help_msg"
|
|
}
|
|
|
|
function process()
|
|
{
|
|
sudo apt-get update
|
|
sudo apt-get install -yq $( sed 's/\#.*$//' ${REQ_PKGS} )
|
|
}
|
|
|
|
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
|
|
print_help
|
|
else
|
|
process
|
|
fi
|