-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·62 lines (48 loc) · 1 KB
/
install.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
54
55
56
57
58
59
60
61
62
#!/bin/sh
#
# Install cytpesgen, Java, JNAerator and create bindings.
#
# Run in the userspaceio dir.
#
# Get current directory
curdir=$PWD
# stdout and stderr for commands logged
logfile="$curdir/install.log"
rm -f $logfile
# Simple logger
log(){
timestamp=$(date +"%m-%d-%Y %k:%M:%S")
echo "$timestamp $1"
echo "$timestamp $1" >> $logfile 2>&1
}
log "Installing User Space IO"
# Install CFFI
cd $curdir/cffi
./install.sh
# Install JNAerator
cd $curdir/jnaerator
./install.sh
# Install libgpiod
cd $curdir/libgpiod
./install.sh
# Generate libgpiod Java bindings
cd $curdir/libgpiod
./java-bindings.sh
# Install c-periphery
cd $curdir/c-periphery
./install.sh
# Generate c-periphery Python bindings
cd $curdir/c-periphery
./python-bindings.sh
# Generate libperiphery Java bindings
cd $curdir/c-periphery
./java-bindings.sh
# Install pwmio
cd $curdir/pwmio
./install.sh
# Generate pwmio Python bindings
cd $curdir/pwmio
./python-bindings.sh
# Generate pwmio Java bindings
cd $curdir/pwmio
./java-bindings.sh