2021-10-08 18:53:56 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
##############################
|
|
|
|
# Builds a specified service
|
|
|
|
# Arguments:
|
|
|
|
# 1: Project to build
|
|
|
|
# 2: Project path
|
|
|
|
##############################
|
|
|
|
build() {
|
|
|
|
local project=$1
|
|
|
|
local project_dir=$2
|
|
|
|
|
|
|
|
echo "Building $project"
|
|
|
|
echo "Build Path: $project_dir"
|
|
|
|
echo "=================="
|
|
|
|
|
|
|
|
chmod u+x "$project_dir/build.sh"
|
|
|
|
"$project_dir/build.sh"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Get Project
|
|
|
|
PROJECT=$1; shift
|
|
|
|
|
|
|
|
case "$PROJECT" in
|
|
|
|
"admin" | "Admin") build Admin $PWD/src/Admin ;;
|
2022-11-18 20:39:01 +01:00
|
|
|
"api" | "Api") build Api $PWD/src/Api ;;
|
2021-10-08 18:53:56 +02:00
|
|
|
"billing" | "Billing") build Billing $PWD/src/Billing ;;
|
2022-11-18 20:39:01 +01:00
|
|
|
"events" | "Events") build Events $PWD/src/Events ;;
|
|
|
|
"eventsprocessor" | "EventsProcessor") build EventsProcessor $PWD/src/EventsProcessor ;;
|
2021-10-08 18:53:56 +02:00
|
|
|
"icons" | "Icons") build Icons $PWD/src/Icons ;;
|
2022-11-18 20:39:01 +01:00
|
|
|
"identity" | "Identity") build Identity $PWD/src/Identity ;;
|
2021-10-08 18:53:56 +02:00
|
|
|
"notifications" | "Notifications") build Notifications $PWD/src/Notifications ;;
|
2022-11-18 20:39:01 +01:00
|
|
|
"server" | "Server") build Server $PWD/util/Server ;;
|
|
|
|
"sso" | "Sso") build Sso $PWD/bitwarden_license/src/Sso ;;
|
2021-10-08 18:53:56 +02:00
|
|
|
"")
|
2022-11-18 20:39:01 +01:00
|
|
|
build Admin $PWD/src/Admin
|
|
|
|
build Api $PWD/src/Api
|
|
|
|
build Billing $PWD/src/Billing
|
|
|
|
build Events $PWD/src/Events
|
2021-10-08 18:53:56 +02:00
|
|
|
build EventsProcessor $PWD/src/EventsProcessor
|
2022-11-18 20:39:01 +01:00
|
|
|
build Icons $PWD/src/Icons
|
|
|
|
build Identity $PWD/src/Identity
|
|
|
|
build Notifications $PWD/src/Notifications
|
|
|
|
build Server $PWD/util/Server
|
|
|
|
build Sso $PWD/bitwarden_license/src/Sso
|
2021-10-08 18:53:56 +02:00
|
|
|
;;
|
|
|
|
esac
|