-
Notifications
You must be signed in to change notification settings - Fork 296
/
make
executable file
·52 lines (37 loc) · 943 Bytes
/
make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Docker / LianHuanHua / HAProxy / Rclone / Alist / Calibre / FFmpeg / Nginx / Openresty / V2ray / Xray / Cloudflare / IBM Cloud Foundry / Armbian / Proxmox VE / ...
# Copyright (C) 2019-2024
# Released under GPL Version 3 License
set -euo pipefail
DEV_PATH=$(dirname "$0")
Error()
{
echo
exit 1
}
Include()
{
INCLUDE_PATH="$DEV_PATH"
include_name="$1"
while [[ $include_name =~ \/ ]]
do
INCLUDE_PATH="$INCLUDE_PATH/${include_name%%/*}"
include_name="${include_name#*/}"
done
shift
# shellcheck disable=SC1090
. "$INCLUDE_PATH/$include_name" "$@" || Error include $?
}
Include ver
Include env
Include core "$@"
Include utils/i18n "$@"
Include build "$@"
if [[ -x $(command -v readlink) ]] && [ -L "$0" ] && alternative=$(readlink "$0") && [ -L "$alternative" ]
then
self=${alternative##*/}
else
self=${0##*/}
fi
self=${self%.*}
Include src/$self "$@"