8553cfb5 |
1 | #!/bin/bash |
2 | # Make release, Linux binaries |
3 | # Run this after build |
4 | # TODO detect x86/x64 build mode ?? |
5 | |
6 | # Release tree: |
7 | # bin-Linux-x86/ |
8 | # bin-Linux-x64/ |
9 | # doc/ |
10 | # usb_relay_device_lib_devel/ |
11 | # (nothing for linux?) |
12 | # Test/ |
13 | |
8553cfb5 |
14 | set -e |
15 | |
16 | export REL=_rel |
17 | |
18 | mkdirr() { |
b4e44cad |
19 | if [ ! -d $1 ]; then mkdir --parents $1 ; fi |
8553cfb5 |
20 | } |
21 | |
22 | mkdirr $REL |
23 | |
24 | copy_x86() { |
25 | mkdirr $1 |
26 | cp commandline/makemake/hidusb-relay-cmd $1 |
27 | cp commandline/makemake/usb_relay_device.so $1 |
28 | } |
29 | |
30 | copy_x64() { |
31 | mkdirr $1 |
32 | cp commandline/makemake/hidusb-relay-cmd $1 |
33 | cp commandline/makemake/usb_relay_device.so $1 |
34 | } |
35 | |
36 | copy_x86 $REL/bin-Linux-x86 |
37 | # copy_x64 $REL/bin-Linux-x64 |
38 | |
39 | copy_noarch() { |
40 | mkdirr $REL/doc |
41 | cp doc/Readme_USB-Relay-DLL.md $REL/doc/ |
42 | cp commandline/README-hidusb-relay-cmd.txt $REL/doc/ |
43 | |
44 | mkdirr $REL/usb_relay_device_lib_devel |
45 | cp lib/usb_relay_device.h $REL/usb_relay_device_lib_devel |
46 | } |
47 | |
48 | copy_noarch |
49 | |
50 | # Tests ... |
51 | mkdirr $REL/Test |
b4e44cad |
52 | cp Test/relay1-pulse.sh $REL/Test |
53 | cp Test/[Tt]est*.py $REL/Test |
8553cfb5 |
54 | |
55 | echo "Done" |