Refactor
This commit is contained in:
@@ -11,15 +11,15 @@ build_and_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_build_dependencies() {
|
install_build_dependencies() {
|
||||||
|
ensure_libjpeg_is_fast
|
||||||
|
|
||||||
if [ "$DISTRO" = centos ]; then
|
if [ "$DISTRO" = centos ]; then
|
||||||
yum install -y cmake gcc
|
yum install -y cmake gcc
|
||||||
ensure_libjpeg_is_fast
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y cmake gcc
|
apt-get install -y cmake gcc
|
||||||
ensure_libjpeg_is_fast
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ensure_libjpeg_is_fast() {
|
ensure_libjpeg_is_fast() {
|
||||||
@@ -28,6 +28,7 @@ ensure_libjpeg_is_fast() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
apt-get update
|
||||||
apt-get install -y nasm
|
apt-get install -y nasm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user