-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_scripts.sh
More file actions
executable file
·32 lines (24 loc) · 893 Bytes
/
Copy pathupdate_scripts.sh
File metadata and controls
executable file
·32 lines (24 loc) · 893 Bytes
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
#!/bin/bash
function update_scripts()
{
source automation_config.sh
[ $? -ne 0 ] && echo "Get automation_config.sh manually for the first time. It contains paths to dependent directories" && return 3
local THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$THIS_DIR"
cp "$scripts_dir/include/log.sh" .
cp "$scripts_dir/include/os.sh" .
cp "$scripts_dir/include/file_utils.sh" .
cp "$scripts_dir/include/file_utils.py" .
cp -a "$scripts/android/SDL/." .
cp "$scripts/android/set_android_environment.sh" .
source log.sh
local log_prefix="[update_scripts]: "
[ $? -ne 0 ] && log_error "Error while delivering files" && return 1
# deliver build scripts
$automation_dir/run.sh \
"$automation_dir/build_sh/deliver_build_scripts_job.sh" \
"$THIS_DIR"
[ $? -ne 0 ] && log_error "Error while delivering files" && return 2
log_success "Done"
}
update_scripts $@