-
Notifications
You must be signed in to change notification settings - Fork 5
/
install_ulx3s-examples.sh
executable file
·42 lines (30 loc) · 1.65 KB
/
install_ulx3s-examples.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#"***************************************************************************************************"
# common initialization
#"***************************************************************************************************"
# select master or some GitHub hash version, and whether or not to force a clean
THIS_CHECKOUT=master
THIS_CLEAN=true
# perform some version control checks on this file
./gitcheck.sh $0
# initialize some environment variables and perform some sanity checks
. ./init.sh
# we don't want tee to capture exit codes
set -o pipefail
#"***************************************************************************************************"
# fetch the ULX3S examples into the workspace
#"***************************************************************************************************"
THIS_LOG=$LOG_DIRECTORY"/"$THIS_FILE_NAME"_ulx3s-bin_"$LOG_SUFFIX".log"
echo "***************************************************************************************************"
echo " ulx3s-examples. Saving log to $THIS_LOG"
echo "***************************************************************************************************"
# Call the common github checkout:
pushd .
cd "$WORKSPACE"
$SAVED_CURRENT_PATH/fetch_github.sh https://github.com/ulx3s/ulx3s-examples.git ulx3s-examples $THIS_CHECKOUT 2>&1 | tee -a "$THIS_LOG"
$SAVED_CURRENT_PATH/check_for_error.sh $? "$THIS_LOG"
cd "$WORKSPACE"/ulx3s-examples
# TODO - any checks?
popd
echo "Completed $0 " | tee -a "$THIS_LOG"
echo "----------------------------------"