-
Notifications
You must be signed in to change notification settings - Fork 40
/
buildpush.sh
executable file
·28 lines (26 loc) · 1017 Bytes
/
buildpush.sh
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
iso_name=apricity_os
edition=gnome
username=apricity
remove_prev=true
verbose="-v"
while getopts 'N:U:V:L:A:D:R:E:w:o:vh' arg; do
case "${arg}" in
N) iso_name="${OPTARG}" ;;
R) remove_prev="${OPTARG}" ;;
E) edition="${OPTARG}" ;;
U) username="${OPTARG}" ;;
v) verbose="-v" ;;
*)
echo "Invalid argument '${arg}'" ;;
esac
done
sudo rm out/*
git checkout dev
git pull origin dev
sudo ./build.sh ${verbose} -E ${edition} -R ${remove_prev} -N ${iso_name} 2>&1 | tee logs/apricity_os-${iso_name}.log
sudo ssh [email protected] "mkdir -p /mnt/static/public_html/freezedry-build/${username}"
sudo scp out/* [email protected]:/mnt/static/public_html/freezedry-build/${username}/
sudo scp logs/apricity_os-${iso_name}.log [email protected]:/mnt/static/public_html/freezedry-build/${username}/
# sudo ssh [email protected] "rm /mnt/static/public_html/freezedry-build/${username}/apricity_os-${iso_name}.iso"
sudo rm out/*
sudo rm -rf work