2016-11-10 11:54:27 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2016-11-12 13:22:23 +03:00
|
|
|
. functions.sh
|
2016-11-11 17:34:29 +03:00
|
|
|
|
2016-11-10 11:54:27 +03:00
|
|
|
function usage() {
|
2016-11-14 17:28:35 +03:00
|
|
|
echo "$0 <clean|build_package|surok_image|alpine|centos|centos_rpm>"
|
2016-11-10 11:54:27 +03:00
|
|
|
}
|
|
|
|
|
2016-11-10 13:24:36 +03:00
|
|
|
case $1 in
|
|
|
|
clean) cleanup ;;
|
|
|
|
build_package)
|
|
|
|
build_builder
|
|
|
|
build_package
|
|
|
|
;;
|
2016-11-10 17:20:46 +03:00
|
|
|
build_deb) build_package ;;
|
|
|
|
surok_image) build_surok_base rebuild ;;
|
|
|
|
surok_image_no_rebuild) build_surok_base ;;
|
2016-11-11 17:34:29 +03:00
|
|
|
alpine) build_alpine ;;
|
2016-11-14 14:57:17 +03:00
|
|
|
centos) build_centos ;;
|
2016-11-14 17:28:35 +03:00
|
|
|
centos_rpm) build_centos_rpm ;;
|
2016-11-10 13:24:36 +03:00
|
|
|
*) usage ;;
|
2016-11-10 11:54:27 +03:00
|
|
|
esac
|