This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
forked from areaDetector/areaDetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeADPrebuilt
executable file
·132 lines (128 loc) · 3.24 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
#!/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-1
ASYN=asyn-4-31
AUTOSAVE=autosave-5-8
BUSY=busy-1-7
CALC=calc-3-6-1
DEVIOCSTATS=devIocStats-3-1-14
SSCAN=sscan-2-10-2
BASE_TOP=/usr/local/epics
BASE=base-3.14.12.5
SUPPORT=/home/epics/support
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/Viewers/ImageJ \
$AREA_DETECTOR/ADCore/bin/$3 \
$AREA_DETECTOR/ADCore/lib/$3 \
$AREA_DETECTOR/ADSupport/bin/$3 \
$AREA_DETECTOR/ADSupport/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/asApp/Db \
$AUTOSAVE/asApp/op \
$AUTOSAVE/bin/$3 \
$AUTOSAVE/lib/$3 \
$BUSY/busyApp/Db \
$BUSY/busyApp/op \
$BUSY/bin/$3 \
$BUSY/lib/$3 \
$CALC/calcApp/Db \
$CALC/calcApp/op \
$CALC/bin/$3 \
$CALC/lib/$3 \
$DEVIOCSTATS/db \
$DEVIOCSTATS/op/adl \
$DEVIOCSTATS/bin/$3 \
$DEVIOCSTATS/lib/$3 \
$SSCAN/sscanApp/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/Viewers/ImageJ \
$AREA_DETECTOR/ADCore/bin/$3 \
$AREA_DETECTOR/ADCore/lib/$3 \
$AREA_DETECTOR/ADSupport/bin/$3 \
$AREA_DETECTOR/ADSupport/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/asApp/Db \
$AUTOSAVE/asApp/op \
$AUTOSAVE/bin/$3 \
$AUTOSAVE/lib/$3 \
$BUSY/busyApp/Db \
$BUSY/busyApp/op \
$BUSY/bin/$3 \
$BUSY/lib/$3 \
$CALC/calcApp/Db \
$CALC/calcApp/op \
$CALC/bin/$3 \
$CALC/lib/$3 \
$DEVIOCSTATS/db \
$DEVIOCSTATS/op/adl \
$DEVIOCSTATS/bin/$3 \
$DEVIOCSTATS/lib/$3 \
$SSCAN/sscanApp/Db \
$SSCAN/sscanApp/op \
$SSCAN/bin/$3 \
$SSCAN/lib/$3 \
--exclude '*.svn*' --exclude '*/O.*'