-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsmart_extract.sh
executable file
·53 lines (41 loc) · 1.89 KB
/
smart_extract.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
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e
smart_pack=SmartAccessAutomotive_3_9_0.tgz
URL_smartbinaries=https://www.smartmicro.com/fileadmin/media/Downloads/Automotive_Radar/Software/${smart_pack}
cat << EOF
The following clause is explicit for the Smart Access release.
*********************************************************************************
This software is licensed under the Apache 2.0 License
Copyright (c) 2021, s.m.s, smart microwave sensors GmbH, Brunswick, Germany
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular
purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or
otherwise, arising from, out of or in connection with the software or the use or other dealings in the Software.
*********************************************************************************
EOF
echo
echo -n "Do you accept the agreement you just read? (yes/no)"
echo ""
read REPLY
echo ""
case "$REPLY" in
yes)
echo "You have accepted the agreement."
;;
*)
echo "Agreement not accepted."
exit
esac
echo
function getSmartaccessBinaries {
wget -c $URL_smartbinaries
echo "extracting smart access"
tar xfz $smart_pack --strip-components=1 -C umrr_ros2_driver/smartmicro/
}
function cleanup {
rm -rf $smart_pack
}
getSmartaccessBinaries
cleanup