forked from areaDetector/areaDetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeADPrebuilt
executable file
·147 lines (143 loc) · 3.6 KB
/
makeADPrebuilt
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#!/bin/bash
# This script takes 3 parameters.
# 1 - The name of the detector (ADProsilica, etc.)
# 2 - The version number (R2-0, etc.)
# 3 - The EPICS architecture (linux-x86_64, etc.)
echo "Parameter 1 = " $1
echo "Parameter 2 = " $2
echo "Parameter 3 = " $3
find . -name 'auto_settings.sav_*' -exec rm -fv {} \;
find . -name 'auto_settings.savB*' -exec rm -fv {} \;
find . -name 'core.*' -exec rm -fv {} \;
find . -name '*.exe.*' -exec rm -fv {} \;
AREA_DETECTOR=areaDetector-3-12-1
ASYN=asyn-4-42
AUTOSAVE=autosave-5-10
BUSY=busy-1-7-2
CALC=calc-3-7-3
DEVIOCSTATS=devIocStats-3-1-16
SEQ=seq-2-2-5
SSCAN=sscan-2-11-3
BASE_TOP=/usr/local/epics-devel
BASE=base-7.0.5
SUPPORT=/home/epics/devel
DESTINATION=/home/epics/public_html/pub/$1/$1_Prebuilt_$AREA_DETECTOR_$2_$3
# NOTE: This cd is needed so that wildcards work, even though the tar command has --directory
cd ..
tar czf $DESTINATION.tgz \
--ignore-failed-read \
--exclude '.svn*' \
--exclude 'O.*' \
--directory $BASE_TOP \
$BASE/bin/$3 \
$BASE/lib/$3 \
--directory $SUPPORT \
$AREA_DETECTOR/ADCore/db \
$AREA_DETECTOR/ADCore/documentation \
$AREA_DETECTOR/ADCore/ADApp/Db \
$AREA_DETECTOR/ADCore/ADApp/op \
$AREA_DETECTOR/ADCore/iocBoot \
$AREA_DETECTOR/ADCore/bin/$3 \
$AREA_DETECTOR/ADCore/lib/$3 \
$AREA_DETECTOR/ADViewers/ImageJ \
$AREA_DETECTOR/ADSupport/bin/$3 \
$AREA_DETECTOR/ADSupport/lib/$3 \
$AREA_DETECTOR/ADGenICam/db \
$AREA_DETECTOR/ADGenICam/GenICamApp/Db \
$AREA_DETECTOR/ADGenICam/GenICamApp/op \
$AREA_DETECTOR/ADGenICam/bin/$3 \
$AREA_DETECTOR/ADGenICam/lib/$3 \
$AREA_DETECTOR/$1/db \
$AREA_DETECTOR/$1/bin/$3 \
$AREA_DETECTOR/$1/lib/$3 \
$AREA_DETECTOR/$1/*/Db \
$AREA_DETECTOR/$1/*/op \
$AREA_DETECTOR/$1/documentation \
$AREA_DETECTOR/$1/iocs/*IOC/bin/$3 \
$AREA_DETECTOR/$1/iocs/*IOC/lib/$3 \
$AREA_DETECTOR/$1/iocs/*IOC/dbd \
$AREA_DETECTOR/$1/iocs/*IOC/iocBoot \
$ASYN/opi \
$ASYN/db \
$ASYN/bin/$3 \
$ASYN/lib/$3 \
$AUTOSAVE/db \
$AUTOSAVE/asApp/op \
$AUTOSAVE/bin/$3 \
$AUTOSAVE/lib/$3 \
$BUSY/db \
$BUSY/busyApp/op \
$BUSY/bin/$3 \
$BUSY/lib/$3 \
$CALC/db \
$CALC/calcApp/op \
$CALC/bin/$3 \
$CALC/lib/$3 \
$DEVIOCSTATS/db \
$DEVIOCSTATS/op/adl \
$DEVIOCSTATS/bin/$3 \
$DEVIOCSTATS/lib/$3 \
$SEQ/bin/$3 \
$SEQ/lib/$3 \
$SSCAN/db \
$SSCAN/sscanApp/op \
$SSCAN/bin/$3 \
$SSCAN/lib/$3
rm -f $DESTINATION.zip
cd $BASE_TOP
zip -r -q $DESTINATION.zip \
$BASE/bin/$3
cd $SUPPORT
zip -r -q --grow $DESTINATION.zip \
$AREA_DETECTOR/ADCore/db \
$AREA_DETECTOR/ADCore/documentation \
$AREA_DETECTOR/ADCore/ADApp/Db \
$AREA_DETECTOR/ADCore/ADApp/op \
$AREA_DETECTOR/ADCore/iocBoot \
$AREA_DETECTOR/ADCore/bin/$3 \
$AREA_DETECTOR/ADCore/lib/$3 \
$AREA_DETECTOR/ADViewers/ImageJ \
$AREA_DETECTOR/ADSupport/bin/$3 \
$AREA_DETECTOR/ADSupport/lib/$3 \
$AREA_DETECTOR/ADGenICam/db \
$AREA_DETECTOR/ADGenICam/GenICamApp/Db \
$AREA_DETECTOR/ADGenICam/GenICamApp/op \
$AREA_DETECTOR/ADGenICam/bin/$3 \
$AREA_DETECTOR/ADGenICam/lib/$3 \
$AREA_DETECTOR/$1/db \
$AREA_DETECTOR/$1/bin/$3 \
$AREA_DETECTOR/$1/lib/$3 \
$AREA_DETECTOR/$1/*/Db \
$AREA_DETECTOR/$1/*/op \
$AREA_DETECTOR/$1/documentation \
$AREA_DETECTOR/$1/iocs/*IOC/bin/$3 \
$AREA_DETECTOR/$1/iocs/*IOC/lib/$3 \
$AREA_DETECTOR/$1/iocs/*IOC/dbd \
$AREA_DETECTOR/$1/iocs/*IOC/iocBoot \
$ASYN/opi \
$ASYN/db \
$ASYN/bin/$3 \
$ASYN/lib/$3 \
$AUTOSAVE/db \
$AUTOSAVE/asApp/op \
$AUTOSAVE/bin/$3 \
$AUTOSAVE/lib/$3 \
$BUSY/db \
$BUSY/busyApp/op \
$BUSY/bin/$3 \
$BUSY/lib/$3 \
$CALC/db \
$CALC/calcApp/op \
$CALC/bin/$3 \
$CALC/lib/$3 \
$DEVIOCSTATS/db \
$DEVIOCSTATS/op/adl \
$DEVIOCSTATS/bin/$3 \
$DEVIOCSTATS/lib/$3 \
$SEQ/bin/$3 \
$SEQ/lib/$3 \
$SSCAN/db \
$SSCAN/sscanApp/op \
$SSCAN/bin/$3 \
$SSCAN/lib/$3 \
--exclude '*.svn*' --exclude '*/O.*'